Fix kubeadm v1beta1 configuration taint (#3928)
* Use master node taint same as kubeadm configuration v1alpha3 or before.pull/3975/head
parent
13efa95ef7
commit
8216e821d3
|
@ -52,9 +52,9 @@ ingress_nginx_enabled: false
|
||||||
# ingress_nginx_nodeselector:
|
# ingress_nginx_nodeselector:
|
||||||
# node-role.kubernetes.io/master: ""
|
# node-role.kubernetes.io/master: ""
|
||||||
# ingress_nginx_tolerations:
|
# ingress_nginx_tolerations:
|
||||||
# - key: "key"
|
# - key: "node-role.kubernetes.io/master"
|
||||||
# operator: "Equal"
|
# operator: "Equal"
|
||||||
# value: "value"
|
# value: ""
|
||||||
# effect: "NoSchedule"
|
# effect: "NoSchedule"
|
||||||
# ingress_nginx_namespace: "ingress-nginx"
|
# ingress_nginx_namespace: "ingress-nginx"
|
||||||
# ingress_nginx_insecure_port: 80
|
# ingress_nginx_insecure_port: 80
|
||||||
|
|
|
@ -9,9 +9,8 @@ nodeRegistration:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if inventory_hostname in groups['kube-master'] and inventory_hostname not in groups['kube-node'] %}
|
{% if inventory_hostname in groups['kube-master'] and inventory_hostname not in groups['kube-node'] %}
|
||||||
taints:
|
taints:
|
||||||
- key: "kubeadmNode"
|
- effect: NoSchedule
|
||||||
value: "master"
|
key: node-role.kubernetes.io/master
|
||||||
effect: "NoSchedule"
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if container_manager == 'crio' %}
|
{% if container_manager == 'crio' %}
|
||||||
criSocket: /var/run/crio/crio.sock
|
criSocket: /var/run/crio/crio.sock
|
||||||
|
|
Loading…
Reference in New Issue