From 881044411c0c458e0c7c0c43b1254015cf6b394c Mon Sep 17 00:00:00 2001 From: "Alexander \"Ace\" Olofsson" Date: Tue, 20 Jun 2023 09:27:53 +0200 Subject: [PATCH] matrix-synapse: Add a default 120s startup probe This should avoid initial setup failing if the cluster is running on low-powered hardware or using slow storage for the database --- charts/matrix-synapse/templates/deployment.yaml | 4 ++++ charts/matrix-synapse/values.yaml | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/charts/matrix-synapse/templates/deployment.yaml b/charts/matrix-synapse/templates/deployment.yaml index 214aa2c..eca9a25 100644 --- a/charts/matrix-synapse/templates/deployment.yaml +++ b/charts/matrix-synapse/templates/deployment.yaml @@ -130,6 +130,10 @@ spec: readinessProbe: {{- . | toYaml | nindent 12 }} {{- end }} + {{- with .Values.synapse.startupProbe }} + startupProbe: + {{- . | toYaml | nindent 12 }} + {{- end }} volumeMounts: - name: config mountPath: /synapse/config diff --git a/charts/matrix-synapse/values.yaml b/charts/matrix-synapse/values.yaml index c2467f4..adbd178 100644 --- a/charts/matrix-synapse/values.yaml +++ b/charts/matrix-synapse/values.yaml @@ -272,6 +272,14 @@ synapse: path: /health port: http + ## Startup probe configuration to use + ## + startupProbe: + failureThreshold: 12 + httpGet: + path: /health + port: http + ## Node selectors to set for the main Synapse pod. ## nodeSelector: {}