43 lines
966 B
YAML
43 lines
966 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: matrix-deployment
|
|
labels:
|
|
app: matrix-app
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: matrix-app
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: matrix-app
|
|
spec:
|
|
containers:
|
|
- name: synapse
|
|
image: docker.io/matrixdotorg/synapse:latest
|
|
env:
|
|
- name: SYNAPSE_CONFIG_DIR
|
|
value: /config
|
|
volumeMounts:
|
|
- mountPath: /config
|
|
name: matrix-config
|
|
- mountPath: /secret
|
|
name: matrix-secret
|
|
- mountPath: /data
|
|
name: matrix-data
|
|
ports:
|
|
- containerPort: 8008
|
|
name: matrix-port
|
|
volumes:
|
|
- name: matrix-config
|
|
configMap:
|
|
name: matrix-config
|
|
- name: matrix-secret
|
|
secret:
|
|
secretName: matrix-secret
|
|
- name: matrix-data
|
|
persistentVolumeClaim:
|
|
claimName: matrix-pvc |