mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-07-14 14:17:51 +00:00
4b324cb0f0
K8s is moving away from the "master" terminology, so kubespray should follow the same naming conventions. See https://github.com/kubernetes/community/blob/65d886bb3029e73d9729e1d4f27422a7985233ed/sig-architecture/naming/recommendations/001-master-control-plane.md
18 lines
474 B
YAML
18 lines
474 B
YAML
---
|
|
|
|
- name: Update server field in component kubeconfigs
|
|
lineinfile:
|
|
dest: "{{ kube_config_dir }}/{{ item }}"
|
|
regexp: '^ server: https'
|
|
line: ' server: {{ kube_apiserver_endpoint }}'
|
|
backup: true
|
|
with_items:
|
|
- admin.conf
|
|
- controller-manager.conf
|
|
- kubelet.conf
|
|
- scheduler.conf
|
|
notify:
|
|
- "Control plane | Restart kube-controller-manager"
|
|
- "Control plane | Restart kube-scheduler"
|
|
- "Control plane | reload kubelet"
|