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
This commit is contained in:
Alexander "Ace" Olofsson 2023-06-20 09:27:53 +02:00
parent c2311f8ffd
commit 881044411c
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
2 changed files with 12 additions and 0 deletions

View file

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

View file

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