From 57d39aa80a7636f16b1dd210a6a48c81f5b0864e Mon Sep 17 00:00:00 2001 From: Jim Nicholson Date: Sat, 26 Feb 2022 04:03:17 -0800 Subject: [PATCH] Switch to flux-friendly pv/pvc --- gitea-pv.yaml | 6 +++--- gitea-pvc.yaml | 4 +++- postgres-pv.yaml | 4 +--- postgres-pvc.yaml | 4 +++- 4 files changed, 10 insertions(+), 8 deletions(-) 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