feat: add untaint control plane nodes task
This commit is contained in:
@@ -9,3 +9,6 @@
|
|||||||
|
|
||||||
- name: Copy Kubernetes admin configuration on all nodes
|
- name: Copy Kubernetes admin configuration on all nodes
|
||||||
ansible.builtin.include_tasks: copy-config.yaml
|
ansible.builtin.include_tasks: copy-config.yaml
|
||||||
|
|
||||||
|
- name: Remove control plane scheduling restrictions
|
||||||
|
ansible.builtin.include_tasks: untaint.yaml
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
- name: Remove control plane NoSchedule taint
|
||||||
|
kubernetes.core.k8s_taint:
|
||||||
|
state: absent
|
||||||
|
name: "{{ ansible_facts['hostname'] }}"
|
||||||
|
taints:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
effect: NoSchedule
|
||||||
Reference in New Issue
Block a user