Synapse/manifests/deployment.yaml

43 lines
1.1 KiB
YAML
Raw Normal View History

2023-07-29 14:13:54 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: synapse
namespace: synapse
spec:
replicas: 1
selector:
matchLabels:
app: synapse
template:
metadata:
labels:
app: synapse
spec:
securityContext:
fsGroup: 991
containers:
- name: synapse
image: matrixdotorg/synapse:latest
ports:
- containerPort: 8008
- containerPort: 9009
volumeMounts:
- mountPath: "/data"
name: synapse-data
- mountPath: "/data/homeserver.yaml"
name: synapse-config-file
subPath: homeserver.yaml
- mountPath: "/data/matrix.beta.halia.dev.log.config"
name: synapse-log-config-file
subPath: matrix.beta.halia.dev.log.config
volumes:
- name: synapse-data
persistentVolumeClaim:
claimName: synapse-pvc
- name: synapse-config-file
secret:
secretName: synapse-secret-config
- name: synapse-log-config-file
configMap:
name: synapse-config