mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
K8s is moving away from the "master" terminology, so kubespray should follow the same naming conventions. See 65d886bb30/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"
|