Set tolerations on cluster-autoscaler.yaml as field for Kubernetes 1.6 support

This commit is contained in:
Otto Yiu 2017-04-05 07:40:39 -07:00
parent 184896aae1
commit 0993e0334b
1 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,7 @@ spec:
labels:
k8s-app: cluster-autoscaler
annotations:
# 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:
containers:
@ -43,4 +44,7 @@ spec:
hostPath:
path: {{SSL_CERT_PATH}}
nodeSelector:
kubernetes.io/role: master
node-role.kubernetes.io/master: ""
tolerations:
- key: "node-role.kubernetes.io/master"
effect: NoSchedule