Create pvc for postgresql

This commit is contained in:
SeanOMik 2023-04-10 20:40:18 -04:00
parent 36949d5b37
commit d0566e7176
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
4 changed files with 31 additions and 0 deletions

View File

@ -21,3 +21,7 @@ spec:
adminPasswordKey: "adminPassword" adminPasswordKey: "adminPassword"
userPasswordKey: "userPassword" userPasswordKey: "userPassword"
replicationPasswordKey: "replicationPassword" replicationPasswordKey: "replicationPassword"
primary:
persistence:
existingClaim: "postgresql-pv-claim"

View File

@ -1,6 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ./pgsql-pv.yaml
- ./pgsql-pvc.yaml
- ./pgsql.sops.yaml - ./pgsql.sops.yaml
- ./helm-release.yaml - ./helm-release.yaml
- ./pgadmin4 - ./pgadmin4

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: postgresql-pv
namespace: database
spec:
storageClassName: manual
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/MainPool/Kubernetes/databases/postgresql"

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: postgresql-pv-claim
namespace: database
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi