fix: remove taint from control-plane nodes
This commit is contained in:
@@ -49,6 +49,9 @@
|
|||||||
args:
|
args:
|
||||||
creates: $HOME/.kube/config
|
creates: $HOME/.kube/config
|
||||||
|
|
||||||
|
- name: Untaint control planes
|
||||||
|
ansible.builtin.import_tasks: untaint.yaml
|
||||||
|
|
||||||
- name: Install Kubernetes CLI
|
- name: Install Kubernetes CLI
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
pkg:
|
pkg:
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
- name: Remove control plane NoSchedule taint from all nodes
|
||||||
|
kubernetes.core.k8s_taint:
|
||||||
|
state: absent
|
||||||
|
name: "{{ inventory_hostname_short }}"
|
||||||
|
taints:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
effect: NoSchedule
|
||||||
Reference in New Issue
Block a user