Update etcd-servers for apiserver (#8253)

This commit is contained in:
Samuel Liu 2021-12-03 16:28:27 +08:00 committed by GitHub
parent a24162f596
commit ee0f1e9d58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,3 +15,10 @@
- "Master | Restart kube-controller-manager" - "Master | Restart kube-controller-manager"
- "Master | Restart kube-scheduler" - "Master | Restart kube-scheduler"
- "Master | reload kubelet" - "Master | reload kubelet"
- name: Update etcd-servers for apiserver
lineinfile:
dest: "{{ kube_config_dir }}/manifests/kube-apiserver.yaml"
regexp: '^ - --etcd-servers='
line: ' - --etcd-servers={{ etcd_access_addresses }}'
when: not etcd_kubeadm_enabled | default(false)