fix(authentik): rm pgBouncer, doesn't support search_path param

This commit is contained in:
JJGadgets
2025-11-10 02:08:53 +08:00
parent c4a03150cd
commit 3b81397d0b
2 changed files with 5 additions and 4 deletions

View File

@@ -93,7 +93,7 @@ spec:
AUTHENTIK_POSTGRESQL__SSLROOTCERT: &pgca /secrets/pg/ca.crt
AUTHENTIK_SESSION_STORAGE: "db" # store sessions in PG than Redis
# pgBouncer / Database Connection Health
AUTHENTIK_POSTGRESQL__CONN_MAX_AGE: &pgage "None" # if not using pgBouncer, maybe setting this to null for unlimited persistent connections is a good idea: connection slots limit can be reached with authentik
AUTHENTIK_POSTGRESQL__CONN_MAX_AGE: &pgage "60" # if not using pgBouncer, maybe setting this to null for unlimited persistent connections is a good idea: connection slots limit can be reached with authentik
AUTHENTIK_POSTGRESQL__CONN_HEALTH_CHECKS: &pgcheck "true"
# AUTHENTIK_POSTGRESQL__DISABLE_SERVER_SIDE_CURSORS: "true"
# Read Replicas

View File

@@ -172,9 +172,10 @@ spec:
proxy:
pgBouncer:
port: 5432
replicas: 3
# config:
# global:
replicas: ${PGBOUNCER_REPLICAS:=3}
config:
global:
track_extra_parameters: "IntervalStyle,search_path"
# pool_mode: "transaction"
resources:
requests: