feat(postgres): run ha postgres cluster
This commit is contained in:
parent
d1ae006245
commit
736ec8bc47
1 changed files with 10 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ metadata:
|
||||||
argocd.argoproj.io/sync-wave: "10"
|
argocd.argoproj.io/sync-wave: "10"
|
||||||
spec:
|
spec:
|
||||||
imageName: ghcr.io/cloudnative-pg/postgresql:16.2
|
imageName: ghcr.io/cloudnative-pg/postgresql:16.2
|
||||||
instances: 1
|
instances: 2
|
||||||
primaryUpdateStrategy: unsupervised
|
primaryUpdateStrategy: unsupervised
|
||||||
primaryUpdateMethod: switchover
|
primaryUpdateMethod: switchover
|
||||||
superuserSecret:
|
superuserSecret:
|
||||||
|
|
@ -34,7 +34,14 @@ spec:
|
||||||
postgresql:
|
postgresql:
|
||||||
parameters:
|
parameters:
|
||||||
max_connections: "500"
|
max_connections: "500"
|
||||||
# max_slot_wal_keep_size: "10GB"
|
max_slot_wal_keep_size: "1GB"
|
||||||
# wal_keep_size: "5GB"
|
wal_keep_size: "1GB"
|
||||||
|
# High Availability configuration
|
||||||
|
minSyncReplicas: 0
|
||||||
|
maxSyncReplicas: 1
|
||||||
|
# Enable replication slots for HA in the cluster
|
||||||
|
replicationSlots:
|
||||||
|
highAvailability:
|
||||||
|
enabled: true
|
||||||
# monitoring:
|
# monitoring:
|
||||||
# enablePodMonitor: true
|
# enablePodMonitor: true
|
||||||
|
|
|
||||||
Reference in a new issue