2019-09-10 01:33:20 +08:00
|
|
|
---
|
2019-09-13 18:40:29 +08:00
|
|
|
|
2021-03-04 01:39:20 +08:00
|
|
|
- name: Update server field in component kubeconfigs
|
|
|
|
lineinfile:
|
2019-09-13 18:40:29 +08:00
|
|
|
dest: "{{ kube_config_dir }}/{{ item }}"
|
2021-03-04 01:39:20 +08:00
|
|
|
regexp: '^ server: https'
|
|
|
|
line: ' server: {{ kube_apiserver_endpoint }}'
|
2024-08-28 13:30:56 +08:00
|
|
|
backup: true
|
2019-09-10 01:33:20 +08:00
|
|
|
with_items:
|
2019-09-13 18:40:29 +08:00
|
|
|
- admin.conf
|
|
|
|
- controller-manager.conf
|
|
|
|
- kubelet.conf
|
|
|
|
- scheduler.conf
|
|
|
|
notify:
|
2024-09-06 14:56:19 +08:00
|
|
|
- "Control plane | Restart kube-controller-manager"
|
|
|
|
- "Control plane | Restart kube-scheduler"
|
|
|
|
- "Control plane | reload kubelet"
|