1
0
IaC/ansible/roles/k8s_taint/tasks/remove_taint.yaml
2022-11-02 13:21:31 +13:00

9 lines
362 B
YAML

---
- name: remove control-plane taint from control-plane nodes # terminology 'control-plane' replaced 'master' in v1.20, ~Dec 2020
when: hostvars[node].k8s_remove_control_plane_taint | default(false)
kubernetes.core.k8s_taint:
name: "{{ node }}"
state: absent
taints:
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane