old db corrupted
This commit is contained in:
@@ -40,10 +40,5 @@ spec:
|
||||
mountPath: /backup
|
||||
volumes:
|
||||
- name: nextcloud-db-storage
|
||||
nfs:
|
||||
server: 10.0.0.10
|
||||
path: /home/akshun/nextcloud/db
|
||||
- name: nextcloud-db-backup
|
||||
nfs:
|
||||
server: 10.0.0.10
|
||||
path: /home/akshun/nextcloud/backup
|
||||
persistentVolumeClaim:
|
||||
claimName: nextcloud-db-longhorn
|
||||
|
||||
29
clusters/default/tools/nextcloud/nextcloud-pvc.yml
Normal file
29
clusters/default/tools/nextcloud/nextcloud-pvc.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: nextcloud-db-longhorn
|
||||
namespace: tools
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
volumeMode: Filesystem
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
storageClassName: longhorn
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: nextcloud-longhorn
|
||||
namespace: tools
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
volumeMode: Filesystem
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
storageClassName: longhorn
|
||||
@@ -46,9 +46,8 @@ spec:
|
||||
volumes:
|
||||
- name: nextcloud-data
|
||||
nfs:
|
||||
path: /home/akshun/nextcloud/data
|
||||
path: /home/akshun/nextcloud-data
|
||||
server: 10.0.0.10
|
||||
- name: nextcloud-config
|
||||
nfs:
|
||||
path: /home/akshun/nextcloud/config
|
||||
server: 10.0.0.10
|
||||
persistentVolumeClaim:
|
||||
claimName: nextcloud-longhorn
|
||||
|
||||
Reference in New Issue
Block a user