Compare commits

...

7 Commits

4 changed files with 51 additions and 2 deletions

View File

@@ -24,5 +24,5 @@ appVersion: "1.0"
dependencies:
- name: cloudnative-pg
version: 0.26.0
version: 0.26.1
repository: https://cloudnative-pg.github.io/charts

View File

@@ -59,4 +59,11 @@ spec:
comment: netmaker
login: true
passwordSecret:
name: netmaker-auth
name: netmaker-auth
- name: pooler
ensure: present
comment: pooler
login: true
superuser: true
passwordSecret:
name: pgbouncer-auth-query

View 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

View File

@@ -0,0 +1,17 @@
apiVersion: postgresql.cnpg.io/v1
kind: Pooler
metadata:
name: pooler-weyma-rw
spec:
cluster:
name: weyma-pgsql
instances: 3
type: rw
pgbouncer:
poolMode: session
authQuery: "SELECT usename, passwd FROM pg_shadow WHERE usename=$1"
authQuerySecret:
name: pgbouncer-auth-query
parameters:
max_client_conn: "10000"
default_pool_size: "100"