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