Create pvc for postgresql
This commit is contained in:
parent
36949d5b37
commit
d0566e7176
|
@ -21,3 +21,7 @@ spec:
|
|||
adminPasswordKey: "adminPassword"
|
||||
userPasswordKey: "userPassword"
|
||||
replicationPasswordKey: "replicationPassword"
|
||||
|
||||
primary:
|
||||
persistence:
|
||||
existingClaim: "postgresql-pv-claim"
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./pgsql-pv.yaml
|
||||
- ./pgsql-pvc.yaml
|
||||
- ./pgsql.sops.yaml
|
||||
- ./helm-release.yaml
|
||||
- ./pgadmin4
|
|
@ -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"
|
|
@ -0,0 +1,12 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: postgresql-pv-claim
|
||||
namespace: database
|
||||
spec:
|
||||
storageClassName: manual
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
Loading…
Reference in New Issue