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
|
appVersion: 1.36.0
|
||||||
|
|
||||||
type: application
|
type: application
|
||||||
version: 2.0.13
|
version: 2.1.0
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Alexander Olofsson
|
- name: Alexander Olofsson
|
||||||
email: ace@haxalot.com
|
email: ace@haxalot.com
|
||||||
|
|
|
@ -111,14 +111,14 @@ spec:
|
||||||
- name: metrics
|
- name: metrics
|
||||||
containerPort: 9090
|
containerPort: 9090
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- with .Values.synapse.livenessProbe }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
{{- . | toYaml | nindent 12 }}
|
||||||
path: /health
|
{{- end }}
|
||||||
port: http
|
{{- with .Values.synapse.readinessProbe }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
{{- . | toYaml | nindent 12 }}
|
||||||
path: /health
|
{{- end }}
|
||||||
port: http
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /synapse/config
|
mountPath: /synapse/config
|
||||||
|
|
|
@ -94,14 +94,14 @@ spec:
|
||||||
- name: listener
|
- name: listener
|
||||||
containerPort: 8083
|
containerPort: 8083
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- if (or $config.livenessProbe $default.livenessProbe) }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
{{- $config.livenessProbe | default $default.livenessProbe | toYaml | nindent 12 }}
|
||||||
path: /health
|
{{- end }}
|
||||||
port: listener
|
{{- if (or $config.readinessProbe $default.readinessProbe) }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
{{- $config.readinessProbe | default $default.readinessProbe | toYaml | nindent 12 }}
|
||||||
path: /health
|
{{- end }}
|
||||||
port: listener
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{- $config.resources | default $default.resources | toYaml | nindent 12 }}
|
{{- $config.resources | default $default.resources | toYaml | nindent 12 }}
|
||||||
|
|
|
@ -218,6 +218,20 @@ synapse:
|
||||||
# cpu: 1000m
|
# cpu: 1000m
|
||||||
# memory: 2500Mi
|
# 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.
|
## Node selectors to set for the main Synapse pod.
|
||||||
##
|
##
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
@ -301,6 +315,20 @@ workers:
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
# memory: 128Mi
|
# 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.
|
## Node selector configuration to set on the worker.
|
||||||
##
|
##
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
Loading…
Reference in a new issue