Skip to content
Snippets Groups Projects
Commit c825f4d1 authored by okamototk's avatar okamototk Committed by k8s-ci-robot
Browse files

Untaint master when it has node role (#3466)

parent 7e195b06
No related branches found
No related tags found
No related merge requests found
......@@ -210,3 +210,8 @@
- name: kubeadm | cleanup old certs if necessary
import_tasks: kubeadm-cleanup-old-certs.yml
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']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment