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:
2026-02-22 12:00:23 +01:00
parent f83c712b2b
commit f83d73c06d

View File

@@ -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 }}