|
@@ -29,8 +29,6 @@ spec:
|
|
|
- name: web
|
|
- name: web
|
|
|
containerPort: 8008
|
|
containerPort: 8008
|
|
|
volumeMounts:
|
|
volumeMounts:
|
|
|
- - name: data-emptydir
|
|
|
|
|
- mountPath: "/data"
|
|
|
|
|
- name: "matrix-homeserver-yaml"
|
|
- name: "matrix-homeserver-yaml"
|
|
|
mountPath: "/data/homeserver.yaml"
|
|
mountPath: "/data/homeserver.yaml"
|
|
|
subPath: "homeserver-yaml"
|
|
subPath: "homeserver-yaml"
|
|
@@ -43,15 +41,48 @@ spec:
|
|
|
mountPath: "/data/matrix.dezendorf.net.log.config"
|
|
mountPath: "/data/matrix.dezendorf.net.log.config"
|
|
|
subPath: "homeserver-log-config"
|
|
subPath: "homeserver-log-config"
|
|
|
readOnly: no
|
|
readOnly: no
|
|
|
|
|
+ - name: "matrix-data-volume"
|
|
|
|
|
+ mountPath: "/data"
|
|
|
|
|
+ readOnly: no
|
|
|
|
|
+ - name: "matrix-media-volume"
|
|
|
|
|
+ mountPath: "/data/media_store"
|
|
|
volumes:
|
|
volumes:
|
|
|
- - name: data-emptydir
|
|
|
|
|
- emptyDir: {}
|
|
|
|
|
|
|
+ - name: "matrix-media-volume"
|
|
|
|
|
+ persistentVolumeClaim:
|
|
|
|
|
+ claimName: "matrix-media-pvc"
|
|
|
|
|
+ - name: "matrix-data-volume"
|
|
|
|
|
+ persistentVolumeClaim:
|
|
|
|
|
+ claimName: "matrix-data-pvc"
|
|
|
- name: "matrix-homeserver-yaml"
|
|
- name: "matrix-homeserver-yaml"
|
|
|
configMap:
|
|
configMap:
|
|
|
defaultMode: 0777
|
|
defaultMode: 0777
|
|
|
name: "matrix-homeserver-yaml"
|
|
name: "matrix-homeserver-yaml"
|
|
|
---
|
|
---
|
|
|
apiVersion: v1
|
|
apiVersion: v1
|
|
|
|
|
+kind: PersistentVolumeClaim
|
|
|
|
|
+metadata:
|
|
|
|
|
+ name: matrix-data-pvc
|
|
|
|
|
+spec:
|
|
|
|
|
+ accessModes:
|
|
|
|
|
+ - ReadWriteOnce
|
|
|
|
|
+ storageClassName: longhorn
|
|
|
|
|
+ resources:
|
|
|
|
|
+ requests:
|
|
|
|
|
+ storage: 50G
|
|
|
|
|
+---
|
|
|
|
|
+apiVersion: v1
|
|
|
|
|
+kind: PersistentVolumeClaim
|
|
|
|
|
+metadata:
|
|
|
|
|
+ name: matrix-media-pvc
|
|
|
|
|
+spec:
|
|
|
|
|
+ accessModes:
|
|
|
|
|
+ - ReadWriteOnce
|
|
|
|
|
+ storageClassName: nfs
|
|
|
|
|
+ resources:
|
|
|
|
|
+ requests:
|
|
|
|
|
+ storage: 100G
|
|
|
|
|
+---
|
|
|
|
|
+apiVersion: v1
|
|
|
kind: Service
|
|
kind: Service
|
|
|
metadata:
|
|
metadata:
|
|
|
name: matrix
|
|
name: matrix
|