mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-27 18:18:26 +00:00
fix(pg): dump-local use pgbouncer by default, primary in shared clusters
This commit is contained in:
@@ -23,6 +23,7 @@ spec:
|
||||
PG_CONFIG_VERSION: "16"
|
||||
PG_CONFIG_SIZE: "100Gi"
|
||||
PG_DUMPALL: !!str "'TRUE'"
|
||||
PG_DUMP_FROM: "primary"
|
||||
patches:
|
||||
- patch: |-
|
||||
apiVersion: postgres-operator.crunchydata.com/v1beta1
|
||||
|
||||
@@ -25,6 +25,7 @@ spec:
|
||||
PG_CONFIG_VERSION: "16"
|
||||
PG_CONFIG_SIZE: "100Gi"
|
||||
PG_DUMPALL: !!str "'TRUE'"
|
||||
PG_DUMP_FROM: "primary"
|
||||
patches:
|
||||
- patch: |-
|
||||
apiVersion: postgres-operator.crunchydata.com/v1beta1
|
||||
|
||||
@@ -50,9 +50,10 @@ spec:
|
||||
# DROP backed_up_databases IF EXISTS
|
||||
- name: "POSTGRES_EXTRA_OPTS"
|
||||
value: "--clean --if-exists"
|
||||
# use pgBouncer service to handle connection loadbalancing and failover
|
||||
# use pgBouncer service by default to handle connection loadbalancing and failover
|
||||
# use primary service using Flux envsubst in case replicas are not ready, pgBouncer won't work with dumpall
|
||||
- name: "POSTGRES_HOST"
|
||||
value: "pg-${PG_APP_NAME}-pods.${PG_APP_NS}.svc.cluster.local"
|
||||
value: "pg-${PG_APP_NAME}-${PG_DUMP_FROM:=pgbouncer}.${PG_APP_NS}.svc.cluster.local"
|
||||
#value: "pg-${PG_APP_NAME}-replicas.${PG_APP_NS}.svc.cluster.local"
|
||||
#valueFrom:
|
||||
# secretKeyRef:
|
||||
|
||||
Reference in New Issue
Block a user