Add dedicated pvc for backups
This commit is contained in:
@@ -12,3 +12,18 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
storageClassName: csi-rbd-sc
|
storageClassName: csi-rbd-sc
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: jellystat-backups
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
volumeMode: Filesystem
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
storageClassName: csi-rbd-sc
|
||||||
|
|||||||
@@ -33,9 +33,8 @@ spec:
|
|||||||
name: jellystat-secret
|
name: jellystat-secret
|
||||||
key: password
|
key: password
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: backup
|
- name: postgres-data
|
||||||
mountPath: /var/lib/postgresql/data
|
mountPath: /var/lib/postgresql/data
|
||||||
subPath: db
|
|
||||||
containers:
|
containers:
|
||||||
- name: jellystat
|
- name: jellystat
|
||||||
image: cyfershepard/jellystat:1.1.6
|
image: cyfershepard/jellystat:1.1.6
|
||||||
@@ -59,10 +58,12 @@ spec:
|
|||||||
name: jellystat-secret
|
name: jellystat-secret
|
||||||
key: jwt
|
key: jwt
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: backup
|
- name: backups
|
||||||
mountPath: /app/backend/backup-data
|
mountPath: /app/backend/backup-data
|
||||||
subPath: backup
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: backup
|
- name: postgres-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: jellystat-ceph
|
claimName: jellystat-ceph
|
||||||
|
- name: backups
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: jellystat-backups
|
||||||
|
|||||||
Reference in New Issue
Block a user