Skip to content

Commit 1ad3acc

Browse files
committed
fix up example deployment
1 parent 77beb98 commit 1ad3acc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cluster-autoscaler/cloudprovider/packet/examples/cluster-autoscaler-deployment.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ spec:
131131
labels:
132132
app: cluster-autoscaler
133133
spec:
134+
tolerations:
135+
- effect: NoSchedule
136+
key: node-role.kubernetes.io/master
134137
# Node affinity is used to force cluster-autoscaler to stick
135138
# to the master node. This allows the cluster to reliably downscale
136139
# to zero worker nodes when needed.
@@ -140,9 +143,7 @@ spec:
140143
nodeSelectorTerms:
141144
- matchExpressions:
142145
- key: node-role.kubernetes.io/master
143-
operator: In
144-
values:
145-
- true
146+
operator: Exists
146147
serviceAccountName: cluster-autoscaler
147148
containers:
148149
- name: cluster-autoscaler

0 commit comments

Comments
 (0)