Skip to content
Snippets Groups Projects
Unverified Commit 92abf26d authored by Unai Arríen's avatar Unai Arríen Committed by GitHub
Browse files

Ensure taint configuration for secondary control-plane nodes (#8363)

parent c11e4ba9
No related branches found
No related tags found
No related merge requests found
...@@ -19,3 +19,10 @@ controlPlane: ...@@ -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 %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment