1
0
IaC/ansible/roles/k8s_taint/tasks/remove_taint.yaml

9 lines
362 B
YAML
Raw Normal View History

2022-11-01 20:21:31 -04:00
---
- 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