postgres: fix pooler config, tested
This commit is contained in:
@@ -59,4 +59,11 @@ spec:
|
|||||||
comment: netmaker
|
comment: netmaker
|
||||||
login: true
|
login: true
|
||||||
passwordSecret:
|
passwordSecret:
|
||||||
name: netmaker-auth
|
name: netmaker-auth
|
||||||
|
- name: pooler
|
||||||
|
ensure: present
|
||||||
|
comment: pooler
|
||||||
|
login: true
|
||||||
|
superuser: true
|
||||||
|
passwordSecret:
|
||||||
|
name: pgbouncer-auth-query
|
||||||
25
postgres/config/poolers/authquery.yaml
Normal file
25
postgres/config/poolers/authquery.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: pgbouncer-auth-query
|
||||||
|
spec:
|
||||||
|
data:
|
||||||
|
- remoteRef:
|
||||||
|
conversionStrategy: Default
|
||||||
|
decodingStrategy: None
|
||||||
|
key: cloudnativepg
|
||||||
|
metadataPolicy: None
|
||||||
|
property: pgbouncer_pw
|
||||||
|
secretKey: password
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
name: weyma-vault
|
||||||
|
target:
|
||||||
|
template:
|
||||||
|
data:
|
||||||
|
username: pooler
|
||||||
|
password: "{{ .password }}"
|
||||||
|
creationPolicy: Owner
|
||||||
|
deletionPolicy: Retain
|
||||||
|
name: pgbouncer-auth-query
|
||||||
@@ -9,6 +9,9 @@ spec:
|
|||||||
type: rw
|
type: rw
|
||||||
pgbouncer:
|
pgbouncer:
|
||||||
poolMode: session
|
poolMode: session
|
||||||
|
authQuery: "SELECT usename, passwd FROM pg_shadow WHERE usename=$1"
|
||||||
|
authQuerySecret:
|
||||||
|
name: pgbouncer-auth-query
|
||||||
parameters:
|
parameters:
|
||||||
max_client_conn: "1000"
|
max_client_conn: "1000"
|
||||||
default_pool_size: "10"
|
default_pool_size: "10"
|
||||||
Reference in New Issue
Block a user