old db corrupted
This commit is contained in:
@@ -40,10 +40,5 @@ spec:
|
|||||||
mountPath: /backup
|
mountPath: /backup
|
||||||
volumes:
|
volumes:
|
||||||
- name: nextcloud-db-storage
|
- name: nextcloud-db-storage
|
||||||
nfs:
|
persistentVolumeClaim:
|
||||||
server: 10.0.0.10
|
claimName: nextcloud-db-longhorn
|
||||||
path: /home/akshun/nextcloud/db
|
|
||||||
- name: nextcloud-db-backup
|
|
||||||
nfs:
|
|
||||||
server: 10.0.0.10
|
|
||||||
path: /home/akshun/nextcloud/backup
|
|
||||||
|
|||||||
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:
|
volumes:
|
||||||
- name: nextcloud-data
|
- name: nextcloud-data
|
||||||
nfs:
|
nfs:
|
||||||
path: /home/akshun/nextcloud/data
|
path: /home/akshun/nextcloud-data
|
||||||
server: 10.0.0.10
|
server: 10.0.0.10
|
||||||
- name: nextcloud-config
|
- name: nextcloud-config
|
||||||
nfs:
|
persistentVolumeClaim:
|
||||||
path: /home/akshun/nextcloud/config
|
claimName: nextcloud-longhorn
|
||||||
server: 10.0.0.10
|
|
||||||
|
|||||||
Reference in New Issue
Block a user