From 264b79c9a0536b05ca16c8f31095357cc210eb62 Mon Sep 17 00:00:00 2001 From: Tim Campbell Date: Mon, 8 Jul 2024 14:52:45 +0200 Subject: [PATCH] Adjust rolling update speed for web pods --- templates/deployment-web.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/deployment-web.yaml b/templates/deployment-web.yaml index 487f443..29a2de4 100644 --- a/templates/deployment-web.yaml +++ b/templates/deployment-web.yaml @@ -13,6 +13,11 @@ spec: {{- if (ne (toString .Values.mastodon.revisionHistoryLimit) "") }} revisionHistoryLimit: {{ .Values.mastodon.revisionHistoryLimit }} {{- end }} + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 2 + maxUnavailable: 25% selector: matchLabels: {{- include "mastodon.selectorLabels" . | nindent 6 }} @@ -203,6 +208,7 @@ spec: httpGet: path: /health port: http + initialDelaySeconds: 15 failureThreshold: 30 periodSeconds: 5 {{- with (default .Values.resources .Values.mastodon.web.resources) }}