From 0a20b6100c7cf961d0fe6eb2a94e82fa90e9883c Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Tue, 11 Apr 2023 23:56:26 -0400 Subject: [PATCH] Fix some small issue with the postgresql pvc --- .../database/postgresql/kustomization.yaml | 1 - .../apps/database/postgresql/pgsql-pv.yaml | 19 ++++++++++++++++--- .../apps/database/postgresql/pgsql-pvc.yaml | 12 ------------ 3 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 cluster/apps/database/postgresql/pgsql-pvc.yaml diff --git a/cluster/apps/database/postgresql/kustomization.yaml b/cluster/apps/database/postgresql/kustomization.yaml index 721e315..31bf3f1 100644 --- a/cluster/apps/database/postgresql/kustomization.yaml +++ b/cluster/apps/database/postgresql/kustomization.yaml @@ -2,7 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./pgsql-pv.yaml -- ./pgsql-pvc.yaml - ./pgsql.sops.yaml - ./helm-release.yaml - ./pgadmin4 \ No newline at end of file diff --git a/cluster/apps/database/postgresql/pgsql-pv.yaml b/cluster/apps/database/postgresql/pgsql-pv.yaml index a0fc9a6..c33cb4f 100644 --- a/cluster/apps/database/postgresql/pgsql-pv.yaml +++ b/cluster/apps/database/postgresql/pgsql-pv.yaml @@ -4,11 +4,24 @@ metadata: name: postgresql-pv namespace: database spec: - storageClassName: local-path + storageClassName: hostpath persistentVolumeReclaimPolicy: Retain capacity: - storage: 10Gi + storage: 12Gi accessModes: - ReadWriteOnce hostPath: - path: "/mnt/MainPool/Kubernetes/databases/postgresql" \ No newline at end of file + path: "/mnt/MainPool/Kubernetes/databases/postgresql" +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: postgresql-pv-claim + namespace: database +spec: + storageClassName: hostpath + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi \ No newline at end of file diff --git a/cluster/apps/database/postgresql/pgsql-pvc.yaml b/cluster/apps/database/postgresql/pgsql-pvc.yaml deleted file mode 100644 index c6651a4..0000000 --- a/cluster/apps/database/postgresql/pgsql-pvc.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: postgresql-pv-claim - namespace: database -spec: - storageClassName: local-path - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 10Gi \ No newline at end of file