123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- ---
- 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:
- strategy:
- type: Recreate
- selector:
- matchLabels:
- app: matrix
- replicas: 1
- template:
- metadata:
- labels:
- app: matrix
- spec:
- containers:
- - name: matrix
- image: matrixdotorg/synapse:v1.71.0
- 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
- ---
- apiVersion: traefik.containo.us/v1alpha1
- kind: IngressRoute
- metadata:
- name: matrix
- namespace: matrix
- spec:
- entryPoints:
- - websecure
- routes:
- - kind: Rule
- match: Host(`matrix.jibby.org`)
- services:
- - kind: Service
- name: matrix-service
- port: 8008
|