fix(deploy): set maxSurge=0 to fit within ResourceQuota during rollout
With 900m/1000m CPU limits used, rolling updates fail because the new pod cannot be created alongside the old one. Setting maxSurge=0 and maxUnavailable=1 kills the old pod first, avoiding quota exhaustion at the cost of brief downtime during deploys.
This commit is contained in:
@@ -9,6 +9,11 @@ spec:
|
||||
{{- if not .Values.autoscaling.enabled }}
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
{{- end }}
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "marktvogt-web.selectorLabels" . | nindent 6 }}
|
||||
|
||||
Reference in New Issue
Block a user