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: labels:
{{- include "mautrix-whatsapp.labels" . | nindent 4 }} {{- include "mautrix-whatsapp.labels" . | nindent 4 }}
spec: spec:
publishNotReadyAddresses: true
type: {{ .Values.service.type }} type: {{ .Values.service.type }}
ports: ports:
- port: {{ .Values.service.port }} - port: {{ .Values.service.port }}

View file

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