Skip to content

Commit 251f57f

Browse files
committed
Update scheduling stragety
With 3 replicas, 3 control plane nodes, and required anti-affinity, there might not be room for a 4th pod during rollout. Setting maxSurge: 0 and maxUnavailable: 1 kills one pod first, then schedules the replacement.
1 parent 9bfa765 commit 251f57f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

manifest.example.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ metadata:
6868
app: node-taint-controller
6969
spec:
7070
replicas: 3
71+
strategy:
72+
type: RollingUpdate
73+
rollingUpdate:
74+
maxSurge: 0
75+
maxUnavailable: 1
7176
selector:
7277
matchLabels:
7378
app: node-taint-controller

0 commit comments

Comments
 (0)