From 1a9da0a9c50af392b957e001a44436530398abc3 Mon Sep 17 00:00:00 2001 From: Jim Nicholson Date: Tue, 26 Dec 2023 16:59:07 -0800 Subject: [PATCH] Begin migration to new storage --- 0x-storage.yaml | 13 +++++++++++++ gitea-deployment.yaml | 5 +++++ kustomization.yaml | 1 + 3 files changed, 19 insertions(+) create mode 100644 0x-storage.yaml diff --git a/0x-storage.yaml b/0x-storage.yaml new file mode 100644 index 0000000..136fca3 --- /dev/null +++ b/0x-storage.yaml @@ -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 \ No newline at end of file diff --git a/gitea-deployment.yaml b/gitea-deployment.yaml index f331679..3ee51fe 100644 --- a/gitea-deployment.yaml +++ b/gitea-deployment.yaml @@ -44,7 +44,12 @@ spec: volumeMounts: - name: gitea-persistent-storage mountPath: /data + - name: gitea-storage-nfs + mountPath: /data.new volumes: - name: gitea-persistent-storage persistentVolumeClaim: claimName: gitea-pvc + - name: gitea-storage-nfs + persistentVolumeClaim: + claimName: gitea-storage-nfs \ No newline at end of file diff --git a/kustomization.yaml b/kustomization.yaml index 8cdaede..d7de12e 100644 --- a/kustomization.yaml +++ b/kustomization.yaml @@ -17,6 +17,7 @@ resources: - postgres-pvc.yaml - gitea-pv.yaml - gitea-pvc.yaml +- 0x-storage.yaml - configuration.yaml - postgres-deployment.yaml - postgres-service.yaml