nuosso/misc/k8s/kustomization/base/components/app-cnpg/resources/app-cnpg-cluster.yaml

18 lines
308 B
YAML
Raw Normal View History

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