feat(postgres): deploy connection pooler
All checks were successful
Renovate / renovate (push) Successful in 40s

This commit is contained in:
Peter 2024-08-14 21:43:10 +02:00
parent caede76c19
commit 1fe2f119da
Signed by: prskr
GPG key ID: F56BED6903BC5E37
2 changed files with 16 additions and 0 deletions

View file

@ -7,6 +7,7 @@ resources:
- resources/secrets/cnpg-backup-creds.yaml
- resources/cluster.yaml
- resources/backup.yaml
- resources/pool.yaml
helmCharts:
- releaseName: cnpg

15
cnpg/resources/pool.yaml Normal file
View file

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