2023-07-29 14:13:54 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: synapse
|
|
|
|
namespace: synapse
|
|
|
|
spec:
|
2024-01-19 23:36:19 +00:00
|
|
|
replicas: 2
|
2023-07-29 14:13:54 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: synapse
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: synapse
|
|
|
|
spec:
|
2024-01-19 23:36:19 +00:00
|
|
|
topologySpreadConstraints:
|
|
|
|
- maxSkrew: 1
|
|
|
|
topologyKey: kubernetes.io/hostname
|
|
|
|
whenUnsatisfiable: DoNotSchedule
|
|
|
|
labelSelector:
|
|
|
|
matchLabels:
|
|
|
|
app: synapse
|
2023-07-29 14:13:54 +00:00
|
|
|
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
|