From 86232e68a81303eb47919c2b0663c54f3b0f8237 Mon Sep 17 00:00:00 2001
From: Joe Friedl <stuff@joefriedl.net>
Date: Thu, 10 Nov 2022 13:16:49 -0500
Subject: [PATCH] Give web container time to start (#19828)

---
 chart/templates/deployment-web.yaml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/chart/templates/deployment-web.yaml b/chart/templates/deployment-web.yaml
index 23d4676b3d..5fb316396c 100644
--- a/chart/templates/deployment-web.yaml
+++ b/chart/templates/deployment-web.yaml
@@ -96,13 +96,18 @@ spec:
               containerPort: {{ .Values.mastodon.web.port }}
               protocol: TCP
           livenessProbe:
+            tcpSocket:
+              port: http
+          readinessProbe:
             httpGet:
               path: /health
               port: http
-          readinessProbe:
+          startupProbe:
             httpGet:
               path: /health
               port: http
+            failureThreshold: 30
+            periodSeconds: 5
           resources:
             {{- toYaml .Values.resources | nindent 12 }}
       {{- with .Values.nodeSelector }}
-- 
GitLab