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