mirror of https://github.com/kubernetes/kops.git
Adjust to kops
This commit is contained in:
parent
d21d6323d0
commit
8a106fb505
|
@ -117,12 +117,31 @@ spec:
|
|||
template:
|
||||
metadata:
|
||||
labels:
|
||||
k8s-addon: cluster-autoscaler.addons.k8s.io
|
||||
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"}]'
|
||||
prometheus.io/scrape: 'true'
|
||||
prometheus.io/port: '8085'
|
||||
spec:
|
||||
tolerations:
|
||||
- effect: NoSchedule
|
||||
key: node-role.kubernetes.io/master
|
||||
nodeSelector:
|
||||
kubernetes.io/role: master
|
||||
serviceAccountName: cluster-autoscaler
|
||||
containers:
|
||||
- image: {{IMAGE}}
|
||||
name: cluster-autoscaler
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health-check
|
||||
port: 8085
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health-check
|
||||
port: 8085
|
||||
resources:
|
||||
limits:
|
||||
cpu: 100m
|
||||
|
@ -149,3 +168,4 @@ spec:
|
|||
- name: ssl-certs
|
||||
hostPath:
|
||||
path: {{SSL_CERT_PATH}}
|
||||
dnsPolicy: "Default"
|
||||
|
|
Loading…
Reference in New Issue