Fix some small issue with the postgresql pvc

This commit is contained in:
SeanOMik 2023-04-11 23:56:26 -04:00
parent c55f288e0b
commit 0a20b6100c
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
3 changed files with 16 additions and 16 deletions

View File

@ -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

View File

@ -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"
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

View File

@ -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