symfony-kube-skeletor/misc/k8s/kustomization/base/components/app-cnpg/resources/app-cnpg-cluster.yaml

18 lines
320 B
YAML

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