k8s taint module
This commit is contained in:
9
ansible/roles/k8s_taint/tasks/remove_taint.yaml
Normal file
9
ansible/roles/k8s_taint/tasks/remove_taint.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- 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
|
Reference in New Issue
Block a user