archives added
This commit is contained in:
33
archives/matrix/matrix-depl.yaml
Normal file
33
archives/matrix/matrix-depl.yaml
Normal file
@ -0,0 +1,33 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: matrix-synapse
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
run: matrix-synapse
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
run: matrix-synapse
|
||||
spec:
|
||||
containers:
|
||||
- image: matrixdotorg/synapse:v1.25.0
|
||||
name: synapse
|
||||
#args: ["generate"]
|
||||
#env:
|
||||
#- name: SYNAPSE_SERVER_NAME
|
||||
# value: "matrix.squi.fr"
|
||||
#- name: SYNAPSE_REPORT_STATS
|
||||
# value: "yes"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
ports:
|
||||
- containerPort: 8008
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: matrix-synapse
|
18
archives/matrix/matrix-ingress.yaml
Normal file
18
archives/matrix/matrix-ingress.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: gitea-ingr
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: matrix.squi.fr
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: gitea
|
||||
port:
|
||||
number: 8008
|
||||
path: /
|
||||
|
28
archives/matrix/matrix-pv.yaml
Normal file
28
archives/matrix/matrix-pv.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: matrix-synapse
|
||||
spec:
|
||||
capacity:
|
||||
storage: 30Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
nfs:
|
||||
server: nas.sq.lan
|
||||
path: "/swarmdata/matrix/synapse"
|
||||
mountOptions:
|
||||
- nfsvers=4.2
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: matrix-synapse
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: ""
|
||||
resources:
|
||||
requests:
|
||||
storage: 30Gi
|
||||
volumeName: matrix-synapse
|
11
archives/matrix/postgres-conf.yaml
Normal file
11
archives/matrix/postgres-conf.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: postgres-configuration
|
||||
labels:
|
||||
app: postgres
|
||||
data:
|
||||
POSTGRES_DB: synapse
|
||||
POSTGRES_USER: synapse
|
||||
POSTGRES_PASSWORD: mBYTE93Gx86Awu
|
||||
POSTGRES_INITDB_ARGS: "--locale=C --encoding=UTF-8"
|
28
archives/matrix/postgres-pv.yaml
Normal file
28
archives/matrix/postgres-pv.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: matrix-postgres
|
||||
spec:
|
||||
capacity:
|
||||
storage: 30Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
nfs:
|
||||
server: nas.sq.lan
|
||||
path: "/swarmdata/matrix/postgres"
|
||||
mountOptions:
|
||||
- nfsvers=4.2
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: matrix-postgres
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: ""
|
||||
resources:
|
||||
requests:
|
||||
storage: 30Gi
|
||||
volumeName: matrix-postgres
|
12
archives/matrix/postgres-service.yaml
Normal file
12
archives/matrix/postgres-service.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
run: matrix-postgres
|
||||
name: matrix-postgres
|
||||
spec:
|
||||
ports:
|
||||
- name: "postgres"
|
||||
port: 5432
|
||||
selector:
|
||||
run: matrix-postgres
|
33
archives/matrix/postgres-stateful.yaml
Normal file
33
archives/matrix/postgres-stateful.yaml
Normal file
@ -0,0 +1,33 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: postgres-statefulset
|
||||
labels:
|
||||
run: matrix-postgres
|
||||
spec:
|
||||
serviceName: "matrix-postgres"
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
run: matrix-postgres
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
run: matrix-postgres
|
||||
spec:
|
||||
containers:
|
||||
- name: postgres
|
||||
image: postgres:12
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: postgres-configuration
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
name: postgresdb
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: matrix-postgres
|
Reference in New Issue
Block a user