Remove pgBouncer for hydra

This commit is contained in:
Philippe Caseiro 2024-10-04 10:01:55 +02:00
parent 8eddcc8fc7
commit cc78d7afb7
3 changed files with 6 additions and 16 deletions

View File

@ -18,9 +18,12 @@
path: "/spec/template/spec/containers/0/env/-" path: "/spec/template/spec/containers/0/env/-"
value: value:
name: HYDRA_DATABASE_SERVICE_NAME name: HYDRA_DATABASE_SERVICE_NAME
value: hydra-postgres-pooler-rw valueFrom:
secretKeyRef:
name: hydra-postgres-app
key: host
- op: add - op: add
path: "/spec/template/spec/containers/0/env/-" path: "/spec/template/spec/containers/0/env/-"
value: value:
name: DSN name: DSN
value: "postgres://$(HYDRA_DATABASE_USER):$(HYDRA_DATABASE_PASSWORD)@$(HYDRA_DATABASE_SERVICE_NAME):5432/hydra?sslmode=disable" value: "postgres://$(HYDRA_DATABASE_USER):$(HYDRA_DATABASE_PASSWORD)@$(HYDRA_DATABASE_SERVICE_NAME):5432/hydra?sslmode=disable&max_conn=$(HYDRA_DATABASE_MAX_CONN)"

View File

@ -1,14 +0,0 @@
apiVersion: postgresql.cnpg.io/v1
kind: Pooler
metadata:
name: hydra-postgres-pooler-rw
spec:
cluster:
name: hydra-postgres
instances: 3
type: rw
pgbouncer:
poolMode: session
parameters:
max_client_conn: "1000"
default_pool_size: "50"

View File

@ -30,6 +30,7 @@ configMapGenerator:
- URLS_CONSENT=http://hydra-consent-app/consent - URLS_CONSENT=http://hydra-consent-app/consent
- URLS_LOGOUT=http://hydra-logout-app/logout - URLS_LOGOUT=http://hydra-logout-app/logout
- HYDRA_SERVE_ALL_ARGS=--dev - HYDRA_SERVE_ALL_ARGS=--dev
- HYDRA_DATABASE_MAX_CONN="10"
- LOG_LEVEL=info - LOG_LEVEL=info
vars: vars: