29 lines
986 B
YAML
29 lines
986 B
YAML
pgbouncer: &pgbouncer_config
|
|
nodeSelector:
|
|
kubernetes.io/hostname: pi2 # close to postgres instance
|
|
config:
|
|
adminUser: "admin"
|
|
adminPassword: "admin"
|
|
authUser: &authUser pgbouncer_auth
|
|
authPassword: *authUser
|
|
databases:
|
|
"*":
|
|
host: "192.168.1.202" # kubernetes.io/hostname=pi2 ip
|
|
port: 5432
|
|
pgbouncer:
|
|
auth_type: scram-sha-256
|
|
auth_query: SELECT uname, phash FROM user_lookup($1)
|
|
ignore_startup_parameters: extra_float_digits # unsupported jdbc extra_float_digits=2 argument
|
|
server_reset_query: DEALLOCATE ALL # fix prepared statement already exist (crowdsec)
|
|
server_idle_timeout: 7200
|
|
pgbouncerExporter:
|
|
enabled: false
|
|
|
|
tool:
|
|
# kind: 'SubChart' or 'HelmChart', if subchart then uncomment Chart.yaml dependency, else comment and use tool library with helm chart template
|
|
kind: 'SubChart'
|
|
repo: https://icoretech.github.io/helm
|
|
chart: pgbouncer
|
|
version: 2.3.1
|
|
values: *pgbouncer_config
|