Skip to content

Commit

Permalink
Ensure taint configuration for secondary control-plane nodes (kuberne…
Browse files Browse the repository at this point in the history
  • Loading branch information
unai-ttxu authored Jan 6, 2022
1 parent c11e4ba commit 92abf26
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ controlPlane:
nodeRegistration:
name: {{ kube_override_hostname|default(inventory_hostname) }}
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 %}

0 comments on commit 92abf26

Please sign in to comment.