Begin migration to new storage

This commit is contained in:
Jim Nicholson 2023-12-26 16:59:07 -08:00
parent 75f624f583
commit 1a9da0a9c5
3 changed files with 19 additions and 0 deletions

13
0x-storage.yaml Normal file
View File

@ -0,0 +1,13 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: gitea-storage-nfs
namespace: gitea
spec:
storageClassName: nfs-client
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi

View File

@ -44,7 +44,12 @@ spec:
volumeMounts: volumeMounts:
- name: gitea-persistent-storage - name: gitea-persistent-storage
mountPath: /data mountPath: /data
- name: gitea-storage-nfs
mountPath: /data.new
volumes: volumes:
- name: gitea-persistent-storage - name: gitea-persistent-storage
persistentVolumeClaim: persistentVolumeClaim:
claimName: gitea-pvc claimName: gitea-pvc
- name: gitea-storage-nfs
persistentVolumeClaim:
claimName: gitea-storage-nfs

View File

@ -17,6 +17,7 @@ resources:
- postgres-pvc.yaml - postgres-pvc.yaml
- gitea-pv.yaml - gitea-pv.yaml
- gitea-pvc.yaml - gitea-pvc.yaml
- 0x-storage.yaml
- configuration.yaml - configuration.yaml
- postgres-deployment.yaml - postgres-deployment.yaml
- postgres-service.yaml - postgres-service.yaml