Improvements for mautrix-whatsapp.
All checks were successful
ci/woodpecker/push/mautrix-whatsapp Pipeline was successful

This commit is contained in:
Alex Manning 2023-09-13 21:15:01 +01:00
parent d4d78bc826
commit a2892dca22
2 changed files with 22 additions and 1 deletions

View file

@ -5,6 +5,7 @@ metadata:
labels:
{{- include "mautrix-whatsapp.labels" . | nindent 4 }}
spec:
publishNotReadyAddresses: true
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}

View file

@ -1,10 +1,11 @@
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
name: {{ include "mautrix-whatsapp.fullname" . }}
labels:
{{- include "mautrix-whatsapp.labels" . | nindent 4 }}
spec:
serviceName: {{ include "mautrix-whatsapp.fullname" . }}-appservice-nocollide
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
replicas: 1
selector:
@ -47,6 +48,25 @@ spec:
workingDir: "/data"
command:
- "/usr/bin/mautrix-whatsapp"
- --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 }}
nodeSelector:
{{- toYaml . | nindent 8 }}