k8s taint module

This commit is contained in:
2022-11-02 13:21:31 +13:00
parent 75e78ea7c8
commit 73982fd7b7
9 changed files with 38 additions and 9 deletions

View 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