Files
homelab/postgres/cluster.yaml
2024-08-25 07:26:20 +05:00

28 lines
470 B
YAML

apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: postgres-cluster
namespace: postgres-system
spec:
instances: 3
minSyncReplicas: 1
maxSyncReplicas: 2
primaryUpdateStrategy: unsupervised
postgresql:
pg_hba:
- host all all all md5
enableSuperuserAccess: true
superuserSecret:
name: postgres-password
bootstrap:
initdb:
database: postgres
secret:
name: postgres-password
storage:
size: 1Gi