Fix some small issue with the postgresql pvc
This commit is contained in:
parent
c55f288e0b
commit
0a20b6100c
|
@ -2,7 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- ./pgsql-pv.yaml
|
- ./pgsql-pv.yaml
|
||||||
- ./pgsql-pvc.yaml
|
|
||||||
- ./pgsql.sops.yaml
|
- ./pgsql.sops.yaml
|
||||||
- ./helm-release.yaml
|
- ./helm-release.yaml
|
||||||
- ./pgadmin4
|
- ./pgadmin4
|
|
@ -4,11 +4,24 @@ metadata:
|
||||||
name: postgresql-pv
|
name: postgresql-pv
|
||||||
namespace: database
|
namespace: database
|
||||||
spec:
|
spec:
|
||||||
storageClassName: local-path
|
storageClassName: hostpath
|
||||||
persistentVolumeReclaimPolicy: Retain
|
persistentVolumeReclaimPolicy: Retain
|
||||||
capacity:
|
capacity:
|
||||||
storage: 10Gi
|
storage: 12Gi
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
hostPath:
|
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
|
|
@ -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
|
|
Loading…
Reference in New Issue