1
0
Fork 0

feat(postgres): run ha postgres cluster

This commit is contained in:
Vojtěch Mareš 2024-06-13 09:34:37 +02:00
parent d1ae006245
commit 736ec8bc47
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -6,7 +6,7 @@ metadata:
argocd.argoproj.io/sync-wave: "10"
spec:
imageName: ghcr.io/cloudnative-pg/postgresql:16.2
instances: 1
instances: 2
primaryUpdateStrategy: unsupervised
primaryUpdateMethod: switchover
superuserSecret:
@ -34,7 +34,14 @@ spec:
postgresql:
parameters:
max_connections: "500"
# max_slot_wal_keep_size: "10GB"
# wal_keep_size: "5GB"
max_slot_wal_keep_size: "1GB"
wal_keep_size: "1GB"
# High Availability configuration
minSyncReplicas: 0
maxSyncReplicas: 1
# Enable replication slots for HA in the cluster
replicationSlots:
highAvailability:
enabled: true
# monitoring:
# enablePodMonitor: true