Add dedicated pvc for backups
This commit is contained in:
@@ -12,3 +12,18 @@ spec:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
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
|
||||
key: password
|
||||
volumeMounts:
|
||||
- name: backup
|
||||
- name: postgres-data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
subPath: db
|
||||
containers:
|
||||
- name: jellystat
|
||||
image: cyfershepard/jellystat:1.1.6
|
||||
@@ -59,10 +58,12 @@ spec:
|
||||
name: jellystat-secret
|
||||
key: jwt
|
||||
volumeMounts:
|
||||
- name: backup
|
||||
- name: backups
|
||||
mountPath: /app/backend/backup-data
|
||||
subPath: backup
|
||||
volumes:
|
||||
- name: backup
|
||||
- name: postgres-data
|
||||
persistentVolumeClaim:
|
||||
claimName: jellystat-ceph
|
||||
- name: backups
|
||||
persistentVolumeClaim:
|
||||
claimName: jellystat-backups
|
||||
|
||||
Reference in New Issue
Block a user