use nfs pv and pvc

This commit is contained in:
2025-07-07 02:55:00 +05:30
parent 6e55aafdbe
commit b6ac3b36a9
2 changed files with 26 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -14,12 +15,6 @@ spec:
app: jellystat
spec:
initContainers:
- name: init-cleanup
image: busybox
command: ["rm", "-rf", "/var/lib/postgresql/data/lost+found"]
volumeMounts:
- name: backup
mountPath: /var/lib/postgresql/data
- name: jellystat-db
image: postgres:alpine
restartPolicy: Always
@@ -38,7 +33,7 @@ spec:
volumeMounts:
- name: backup
mountPath: /var/lib/postgresql/data
subPath: pgdata
subPath: db
containers:
- name: jellystat
image: cyfershepard/jellystat:1.1.6
@@ -68,4 +63,4 @@ spec:
volumes:
- name: backup
persistentVolumeClaim:
claimName: longhorn-jellystat-data
claimName: jellystat-pvc