Untaint master when it has node role (#3466)
This commit is contained in:
parent
7e195b06a6
commit
c825f4d180
1 changed files with 5 additions and 0 deletions
|
@ -210,3 +210,8 @@
|
||||||
- name: kubeadm | cleanup old certs if necessary
|
- name: kubeadm | cleanup old certs if necessary
|
||||||
import_tasks: kubeadm-cleanup-old-certs.yml
|
import_tasks: kubeadm-cleanup-old-certs.yml
|
||||||
when: old_apiserver_cert.stat.exists
|
when: old_apiserver_cert.stat.exists
|
||||||
|
|
||||||
|
- name: kubeadm | Remove taint for master with node role
|
||||||
|
command: "{{ bin_dir }}/kubectl taint node {{ inventory_hostname }} node-role.kubernetes.io/master:NoSchedule-"
|
||||||
|
delegate_to: "{{groups['kube-master']|first}}"
|
||||||
|
when: inventory_hostname in groups['kube-node']
|
||||||
|
|
Loading…
Reference in a new issue