123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- ---
- apiVersion: v1
- kind: Namespace
- metadata:
- name: matrix
- ---
- apiVersion: v1
- kind: PersistentVolumeClaim
- metadata:
- name: matrix-pvc
- namespace: matrix
- labels:
- app: matrix
- spec:
- storageClassName: ceph-block
- accessModes:
- - ReadWriteOnce
- resources:
- requests:
- storage: 20Gi
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: matrix
- namespace: matrix
- spec:
- selector:
- matchLabels:
- app: matrix
- replicas: 1
- template:
- metadata:
- labels:
- app: matrix
- spec:
- containers:
- - name: matrix
- image: matrixdotorg/synapse:v1.55.2
- ports:
- - containerPort: 8008
- name: http-web-svc
- volumeMounts:
- - mountPath: "/data"
- name: data
- livenessProbe:
- httpGet:
- path: /_matrix/static
- port: 8008
- failureThreshold: 10
- initialDelaySeconds: 30
- periodSeconds: 30
- timeoutSeconds: 10
- volumes:
- - name: data
- persistentVolumeClaim:
- claimName: matrix-pvc
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: matrix-service
- namespace: matrix
- spec:
- selector:
- app: matrix
- type: ClusterIP
- ports:
- - name: matrix-web-port
- protocol: TCP
- port: 8008
- targetPort: http-web-svc
|