This commit is contained in:
2026-03-29 14:55:13 +00:00
parent a4285fd599
commit 849de96f92

View File

@@ -76,47 +76,64 @@ spec:
labels: labels:
app: synapse app: synapse
spec: spec:
securityContext:
fsGroup: 991
fsGroupChangePolicy: OnRootMismatch
initContainers:
- name: fix-permissions
image: busybox:1.36
command:
- sh
- -c
- |
mkdir -p /data
chown -R 991:991 /data
chmod -R u+rwX,g+rwX /data
ls -ld /data
ls -l /data || true
volumeMounts:
- mountPath: /data
name: data
containers: containers:
- name: synapse - name: synapse
image: matrixdotorg/synapse:v1.150.0 image: matrixdotorg/synapse:v1.150.0
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
ports: ports:
- containerPort: 8008 - containerPort: 8008
name: http name: http
readinessProbe:
readinessProbe: httpGet:
httpGet: path: /_matrix/client/versions
path: /_matrix/client/versions port: 8008
port: 8008 scheme: HTTP
scheme: HTTP initialDelaySeconds: 10
initialDelaySeconds: 10 periodSeconds: 10
periodSeconds: 10 livenessProbe:
httpGet:
livenessProbe: path: /_matrix/client/versions
httpGet: port: 8008
path: /_matrix/client/versions scheme: HTTP
port: 8008 initialDelaySeconds: 120
scheme: HTTP periodSeconds: 20
initialDelaySeconds: 120 volumeMounts:
periodSeconds: 20 - mountPath: /data
name: data
volumeMounts: - mountPath: /data/homeserver.yaml
- mountPath: /data name: homeserver
name: data subPath: homeserver.yaml
- mountPath: /data/homeserver.yaml
name: homeserver
subPath: homeserver.yaml
volumes: volumes:
- name: data - name: data
persistentVolumeClaim: persistentVolumeClaim:
claimName: data claimName: data
- name: homeserver - name: homeserver
configMap: configMap:
name: config name: config
items: items:
- key: homeserver.yaml - key: homeserver.yaml
path: homeserver.yaml path: homeserver.yaml
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service