Synapse/manifests/bridges/telegram/statefulset.yaml

38 lines
904 B
YAML

apiVersion: apps/v1
kind: StatefulSet
metadata:
name: telegram
namespace: synapse
spec:
selector:
matchLabels:
app: telegram
serviceName: telegram
replicas: 1
minReadySeconds: 10
template:
metadata:
labels:
app: telegram
spec:
terminationGracePeriodSeconds: 10
containers:
- name: telegram
image: dock.mau.dev/mautrix/telegram:v0.15.2
command: [
"/usr/bin/python3",
"-m", "mautrix_telegram",
"--config", "/data/config.yaml",
"--no-update",
]
ports:
- containerPort: 29328
volumeMounts:
- mountPath: "/data/config.yaml"
name: telegram-config-file
subPath: config.yaml
volumes:
- name: telegram-config-file
secret:
secretName: telegram-secret-config