File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ metadata:
1111 {{- end }}
1212spec :
1313 replicas : {{ .Values.replica }}
14+ strategy :
15+ type : RollingUpdate
16+ rollingUpdate :
17+ maxUnavailable : {{ .Values.strategy.rollingUpdate.maxUnavailable }}
18+ maxSurge : {{ .Values.strategy.rollingUpdate.maxSurge }}
1419 selector :
1520 matchLabels :
1621 app : {{ .Values.name }}
Original file line number Diff line number Diff line change @@ -8,11 +8,16 @@ replica: 2
88
99resource :
1010 requests :
11- memory : 16Gi
12- cpu : 4
11+ memory : " 100Mi "
12+ cpu : 0.1
1313 limits :
14- memory : 32Gi
15- cpu : 8
14+ memory : " 300Mi"
15+ cpu : 0.3
16+
17+ strategy :
18+ rollingUpdate :
19+ maxUnavailable : 0 # Ensures at least one pod is always available
20+ maxSurge : 1 # Only one pod is created at a time
1621
1722affinity :
1823 affinityTolerations :
You can’t perform that action at this time.
0 commit comments