-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatrix.yaml
90 lines (90 loc) · 1.58 KB
/
matrix.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
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