use nfs pv and pvc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user