matrix-synapse: Allow probe configuration

This commit is contained in:
Alexander Olofsson 2021-06-28 15:10:10 +02:00
parent aafd204310
commit 6016baa4f6
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
4 changed files with 41 additions and 13 deletions

View file

@ -6,7 +6,7 @@ icon: https://matrix.org/images/matrix-logo.svg
appVersion: 1.36.0
type: application
version: 2.0.13
version: 2.1.0
maintainers:
- name: Alexander Olofsson
email: ace@haxalot.com

View file

@ -111,14 +111,14 @@ spec:
- name: metrics
containerPort: 9090
protocol: TCP
{{- with .Values.synapse.livenessProbe }}
livenessProbe:
httpGet:
path: /health
port: http
{{- . | toYaml | nindent 12 }}
{{- end }}
{{- with .Values.synapse.readinessProbe }}
readinessProbe:
httpGet:
path: /health
port: http
{{- . | toYaml | nindent 12 }}
{{- end }}
volumeMounts:
- name: config
mountPath: /synapse/config

View file

@ -94,14 +94,14 @@ spec:
- name: listener
containerPort: 8083
protocol: TCP
{{- if (or $config.livenessProbe $default.livenessProbe) }}
livenessProbe:
httpGet:
path: /health
port: listener
{{- $config.livenessProbe | default $default.livenessProbe | toYaml | nindent 12 }}
{{- end }}
{{- if (or $config.readinessProbe $default.readinessProbe) }}
readinessProbe:
httpGet:
path: /health
port: listener
{{- $config.readinessProbe | default $default.readinessProbe | toYaml | nindent 12 }}
{{- end }}
{{- end }}
resources:
{{- $config.resources | default $default.resources | toYaml | nindent 12 }}

View file

@ -218,6 +218,20 @@ synapse:
# cpu: 1000m
# memory: 2500Mi
## Liveness probe configuration to use
##
livenessProbe:
httpGet:
path: /health
port: http
## Readiness probe configuration to use
##
readinessProbe:
httpGet:
path: /health
port: http
## Node selectors to set for the main Synapse pod.
##
nodeSelector: {}
@ -300,6 +314,20 @@ workers:
# requests:
# cpu: 100m
# memory: 128Mi
## Liveness probe configuration to use
##
livenessProbe:
httpGet:
path: /health
port: listener
## Readiness probe configuration to use
##
readinessProbe:
httpGet:
path: /health
port: listener
## Node selector configuration to set on the worker.
##