Browse Source
Ensure taint configuration for secondary control-plane nodes (#8363)
pull/8380/head
Unai Arríen
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
roles/kubernetes/control-plane/templates/kubeadm-controlplane.v1beta2.yaml.j2
|
|
@ -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 %} |