symfony-kube-skeletor/misc/k8s/kustomization/base/components/myapplication-cnpg/resources/myapplication-cnpg-cluster.yaml
2023-06-19 14:28:01 +02:00

18 lines
370 B
YAML

apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: myapplication-postgres
spec:
instances: 3
primaryUpdateStrategy: unsupervised
superuserSecret:
name: myapplication-postgres-admin
bootstrap:
initdb:
database: myapplication
owner: myapplication
secret:
name: myapplication-postgres-user
storage:
size: 20Gi