mirror of https://github.com/kubernetes/kops.git
Keep the 1.5 tolerations around, in case of a downgrade
The annotation should be ignored in 1.6, but in case of a downgrade to 1.5, it means we will still correctly tolerate the master taints. We can remove in 1.7
This commit is contained in:
parent
31a8a8ac91
commit
39fff5e4ac
|
@ -20,6 +20,8 @@ spec:
|
|||
version: v1.6.0
|
||||
annotations:
|
||||
scheduler.alpha.kubernetes.io/critical-pod: ''
|
||||
# For 1.6, we keep the old tolerations in case of a downgrade to 1.5
|
||||
scheduler.alpha.kubernetes.io/tolerations: '[{"key": "dedicated", "value": "master"}]'
|
||||
spec:
|
||||
tolerations:
|
||||
- key: "node-role.kubernetes.io/master"
|
||||
|
|
|
@ -28,6 +28,7 @@ spec:
|
|||
k8s-app: kube-dns-autoscaler
|
||||
annotations:
|
||||
scheduler.alpha.kubernetes.io/critical-pod: ''
|
||||
# For 1.6, we keep the old tolerations in case of a downgrade to 1.5
|
||||
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
|
||||
spec:
|
||||
serviceAccountName: kube-dns-autoscaler
|
||||
|
@ -79,6 +80,7 @@ spec:
|
|||
k8s-app: kube-dns
|
||||
annotations:
|
||||
scheduler.alpha.kubernetes.io/critical-pod: ''
|
||||
# For 1.6, we keep the old tolerations in case of a downgrade to 1.5
|
||||
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
|
||||
spec:
|
||||
dnsPolicy: Default # Don't use cluster DNS.
|
||||
|
|
Loading…
Reference in New Issue