From b499f125d6d6dbf28d8f9aa2f789e145ad5b2cc0 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 4 Oct 2022 01:05:06 +0200 Subject: [PATCH] Ensure slow rollout --- chart/templates/deployment-backend.yaml | 5 +++++ chart/templates/deployment-frontend.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/chart/templates/deployment-backend.yaml b/chart/templates/deployment-backend.yaml index 7fc48b08..c69d2102 100644 --- a/chart/templates/deployment-backend.yaml +++ b/chart/templates/deployment-backend.yaml @@ -8,6 +8,11 @@ spec: {{- if not .Values.backend.autoscaling.enabled }} replicas: {{ .Values.backend.replicaCount }} {{- end }} + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 1 selector: matchLabels: {{- include "hangar.selectorLabels" . | nindent 6 }} diff --git a/chart/templates/deployment-frontend.yaml b/chart/templates/deployment-frontend.yaml index dfa804da..478c1a41 100644 --- a/chart/templates/deployment-frontend.yaml +++ b/chart/templates/deployment-frontend.yaml @@ -8,6 +8,11 @@ spec: {{- if not .Values.frontend.autoscaling.enabled }} replicas: {{ .Values.frontend.replicaCount }} {{- end }} + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 1 selector: matchLabels: {{- include "hangar.selectorLabels" . | nindent 6 }}