matrix-synapse: Allow probe configuration
This commit is contained in:
parent
aafd204310
commit
6016baa4f6
4 changed files with 41 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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.
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue