old db corrupted

This commit is contained in:
2025-10-16 04:35:30 +05:30
parent 9c0f687843
commit f7171c6cb6
3 changed files with 34 additions and 11 deletions

View File

@@ -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

View 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

View File

@@ -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