diff --git a/cluster/apps/jellystat/jellystat-pvc.yml b/cluster/apps/jellystat/jellystat-pvc.yml index fc75642..ca93bb2 100644 --- a/cluster/apps/jellystat/jellystat-pvc.yml +++ b/cluster/apps/jellystat/jellystat-pvc.yml @@ -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 diff --git a/cluster/apps/jellystat/jellystat.yml b/cluster/apps/jellystat/jellystat.yml index 4032720..6f0a00a 100644 --- a/cluster/apps/jellystat/jellystat.yml +++ b/cluster/apps/jellystat/jellystat.yml @@ -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