90 lines
2.6 KiB
YAML
90 lines
2.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: mautrix-whatsapp
|
|
labels:
|
|
app.kubernetes.io/controller: main
|
|
app.kubernetes.io/instance: matrix-synapse
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: mautrix-whatsapp
|
|
helm.sh/chart: mautrix-whatsapp-4.5.0
|
|
namespace: matrix-synapse
|
|
spec:
|
|
revisionHistoryLimit: 3
|
|
replicas: 1
|
|
podManagementPolicy: OrderedReady
|
|
updateStrategy:
|
|
type: RollingUpdate
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/controller: main
|
|
app.kubernetes.io/name: mautrix-whatsapp
|
|
app.kubernetes.io/instance: matrix-synapse
|
|
serviceName: mautrix-whatsapp
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/controller: main
|
|
app.kubernetes.io/instance: matrix-synapse
|
|
app.kubernetes.io/name: mautrix-whatsapp
|
|
spec:
|
|
enableServiceLinks: false
|
|
serviceAccountName: default
|
|
automountServiceAccountToken: true
|
|
hostIPC: false
|
|
hostNetwork: false
|
|
hostPID: false
|
|
dnsPolicy: ClusterFirst
|
|
initContainers:
|
|
- command:
|
|
- /bin/sh
|
|
- -ec
|
|
- |
|
|
echo ">> Coping files ..."
|
|
ls /tmp
|
|
cp -fv /tmp/config.yaml /data/config.yml
|
|
cp -fv /tmp/mautrix-whatsapp-registration.yaml /data/registration.yml
|
|
echo ">> Files in data:"
|
|
ls /data
|
|
image: busybox:1.37.0
|
|
imagePullPolicy: IfNotPresent
|
|
name: init-copy-config
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 128Mi
|
|
volumeMounts:
|
|
- mountPath: /tmp/config.yaml
|
|
mountPropagation: None
|
|
name: config
|
|
readOnly: true
|
|
subPath: config.yaml
|
|
- mountPath: /data
|
|
name: data
|
|
- mountPath: /tmp/mautrix-whatsapp-registration.yaml
|
|
mountPropagation: None
|
|
name: registration
|
|
readOnly: true
|
|
subPath: mautrix-whatsapp-registration.yaml
|
|
containers:
|
|
- image: dock.mau.dev/mautrix/whatsapp:v0.2511.0
|
|
imagePullPolicy: IfNotPresent
|
|
name: main
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 64Mi
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: data
|
|
volumes:
|
|
- name: config
|
|
secret:
|
|
secretName: mautrix-whatsapp-config-secret
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: mautrix-whatsapp
|
|
- name: registration
|
|
secret:
|
|
secretName: mautrix-whatsapp-config-secret
|