Make a statefulset and add liveness probes.
All checks were successful
ci/woodpecker/push/mautrix-facebook Pipeline was successful

This commit is contained in:
Alex Manning 2023-09-13 20:56:31 +01:00
parent 632eacfa3b
commit 544d1ada5a

View file

@ -1,10 +1,11 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: StatefulSet
metadata: metadata:
name: {{ include "mautrix-facebook.fullname" . }} name: {{ include "mautrix-facebook.fullname" . }}
labels: labels:
{{- include "mautrix-facebook.labels" . | nindent 4 }} {{- include "mautrix-facebook.labels" . | nindent 4 }}
spec: spec:
serviceName: {{ include "mautrix-facebook.fullname" . }}-appservice-nocollide
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
replicas: 1 replicas: 1
selector: selector:
@ -48,6 +49,25 @@ spec:
- mautrix_facebook - mautrix_facebook
- -c - -c
- /data/config.yaml - /data/config.yaml
- --no-update
startupProbe:
httpGet:
port: appservice
path: "/_matrix/mau/live"
periodSeconds: 10
failureThreshold: 60
livenessProbe:
httpGet:
port: appservice
path: "/_matrix/mau/live"
periodSeconds: 10
failureThreshold: 12
readinessProbe:
httpGet:
port: appservice
path: "/_matrix/mau/ready"
periodSeconds: 10
failureThreshold: 12
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}