feat: add shared PgBouncer deployment
This commit is contained in:
25
pgbouncer/configmap.yaml
Normal file
25
pgbouncer/configmap.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: pgbouncer-config
|
||||
namespace: pgbouncer
|
||||
data:
|
||||
pgbouncer.ini: |
|
||||
[databases]
|
||||
gitea = host=lunarfront-postgres-do-user-35277853-0.e.db.ondigitalocean.com port=25060 dbname=gitea user=gitea
|
||||
windmill = host=lunarfront-postgres-do-user-35277853-0.e.db.ondigitalocean.com port=25060 dbname=windmill user=windmill
|
||||
|
||||
[pgbouncer]
|
||||
listen_port = 5432
|
||||
listen_addr = 0.0.0.0
|
||||
auth_type = plain
|
||||
auth_file = /etc/pgbouncer/userlist.txt
|
||||
pool_mode = transaction
|
||||
max_client_conn = 200
|
||||
default_pool_size = 5
|
||||
min_pool_size = 1
|
||||
reserve_pool_size = 2
|
||||
server_tls_sslmode = require
|
||||
ignore_startup_parameters = extra_float_digits
|
||||
log_connections = 0
|
||||
log_disconnections = 0
|
||||
Reference in New Issue
Block a user