Merge pull request #2288 from ottoyiu/cluster-autoscaler-1.6

Change how tolerations are defined in cluster-autoscaler.yaml for k8s 1.6
This commit is contained in:
Justin Santa Barbara 2017-04-10 10:59:37 -04:00 committed by GitHub
commit 214f841cb8
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