66 lines
1.6 KiB
YAML
66 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mautrix-discord
|
|
labels:
|
|
app.kubernetes.io/name: mautrix-discord
|
|
annotations:
|
|
keel.sh/policy: "all"
|
|
keel.sh/match-tag: "true"
|
|
keel.sh/schedule: "0 3 * * *"
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: mautrix-discord
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: mautrix-discord
|
|
spec:
|
|
containers:
|
|
- name: mautrix-discord
|
|
image: dock.mau.dev/mautrix/discord:latest
|
|
ports:
|
|
- containerPort: 29334
|
|
name: appservice
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: mautrix-discord-data
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mautrix-discord-postgres
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: mautrix-discord-postgres
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: mautrix-discord-postgres
|
|
spec:
|
|
containers:
|
|
- name: postgres
|
|
image: postgres:16-alpine
|
|
ports:
|
|
- containerPort: 5432
|
|
envFrom:
|
|
- secretRef:
|
|
name: mautrix-discord-secret
|
|
volumeMounts:
|
|
- name: postgres-storage
|
|
mountPath: /var/lib/postgresql/data
|
|
subPath: mautrix-discord-data
|
|
volumes:
|
|
- name: postgres-storage
|
|
persistentVolumeClaim:
|
|
claimName: mautrix-discord-postgres-pvc
|