Skip to content

Commit cd84946

Browse files
committed
Set maxSurge: 0 for RollingUpdate to avoid resource shortage on cluster
1 parent f300f76 commit cd84946

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/cuber/templates/deployment.yml.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ spec:
135135
selector:
136136
matchLabels:
137137
app: <%= procname %>-proc
138+
strategy:
139+
type: RollingUpdate
140+
rollingUpdate:
141+
maxUnavailable: "25%"
142+
maxSurge: 0
138143
template:
139144
metadata:
140145
labels:

0 commit comments

Comments
 (0)