Ensure taint configuration for secondary control-plane nodes (#8363)
This commit is contained in:
parent
c11e4ba9a7
commit
92abf26d29
1 changed files with 7 additions and 0 deletions
|
@ -19,3 +19,10 @@ controlPlane:
|
||||||
nodeRegistration:
|
nodeRegistration:
|
||||||
name: {{ kube_override_hostname|default(inventory_hostname) }}
|
name: {{ kube_override_hostname|default(inventory_hostname) }}
|
||||||
criSocket: {{ cri_socket }}
|
criSocket: {{ cri_socket }}
|
||||||
|
{% if inventory_hostname in groups['kube_control_plane'] and inventory_hostname not in groups['kube_node'] %}
|
||||||
|
taints:
|
||||||
|
- effect: NoSchedule
|
||||||
|
key: node-role.kubernetes.io/master
|
||||||
|
{% else %}
|
||||||
|
taints: []
|
||||||
|
{% endif %}
|
Loading…
Reference in a new issue