diff --git a/gitea-pv.yaml b/gitea-pv.yaml index 826dfea..b43c449 100644 --- a/gitea-pv.yaml +++ b/gitea-pv.yaml @@ -7,6 +7,7 @@ labels: app: gitea spec: + storageClassName: "local-path" capacity: storage: 5Gi accessModes: @@ -17,6 +18,5 @@ nfs: server: 10.0.96.2 path: "/volume1/storage/git-repo" - claimRef: - namespace: gitea - name: gitea-pvc + + diff --git a/gitea-pvc.yaml b/gitea-pvc.yaml index fd602cc..61f2c67 100644 --- a/gitea-pvc.yaml +++ b/gitea-pvc.yaml @@ -7,8 +7,10 @@ labels: app: gitea spec: + storageClassName: "local-path" accessModes: - ReadWriteOnce resources: requests: - storage: 5Gi \ No newline at end of file + storage: 5Gi + volumeName: gitea-pv \ No newline at end of file diff --git a/postgres-pv.yaml b/postgres-pv.yaml index 982db13..e4fc009 100644 --- a/postgres-pv.yaml +++ b/postgres-pv.yaml @@ -7,6 +7,7 @@ labels: app: gitea spec: + storageClassName: "local-path" capacity: storage: 5Gi accessModes: @@ -17,6 +18,3 @@ nfs: server: 10.0.96.2 path: "/volume1/storage/git-database" - claimRef: - namespace: gitea - name: postgres-pvc diff --git a/postgres-pvc.yaml b/postgres-pvc.yaml index 1d3a6ec..20e7756 100644 --- a/postgres-pvc.yaml +++ b/postgres-pvc.yaml @@ -7,8 +7,10 @@ metadata: labels: app: gitea spec: + storageClassName: "local-path" accessModes: - ReadWriteOnce resources: requests: - storage: 5Gi \ No newline at end of file + storage: 5Gi + volumeName: postgres-pv \ No newline at end of file