File tree Expand file tree Collapse file tree 7 files changed +29
-9
lines changed Expand file tree Collapse file tree 7 files changed +29
-9
lines changed Original file line number Diff line number Diff line change @@ -588,7 +588,7 @@ spec:
588588 default : " pooler"
589589 connection_pooler_image :
590590 type : string
591- default : " registry.opensource.zalan.do/acid/pgbouncer:master-19 "
591+ default : " registry.opensource.zalan.do/acid/pgbouncer:master-22 "
592592 connection_pooler_max_db_connections :
593593 type : integer
594594 default : 60
Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ configConnectionPooler:
381381 # db user for pooler to use
382382 connection_pooler_user : " pooler"
383383 # docker image
384- connection_pooler_image : " registry.opensource.zalan.do/acid/pgbouncer:master-19 "
384+ connection_pooler_image : " registry.opensource.zalan.do/acid/pgbouncer:master-22 "
385385 # max db connections the pooler should hold
386386 connection_pooler_max_db_connections : 60
387387 # default pooling mode
Original file line number Diff line number Diff line change @@ -83,16 +83,36 @@ kubectl port-forward $PGMASTER 6432:5432 -n default
8383```
8484
8585Open another CLI and connect to the database using e.g. the psql client.
86- When connecting with the ` postgres ` user read its password from the K8s secret
87- which was generated when creating the ` acid-minimal-cluster ` . As non-encrypted
88- connections are rejected by default set the SSL mode to ` require ` :
86+ When connecting with a manifest role like ` foo_user ` user, read its password
87+ from the K8s secret which was generated when creating ` acid-minimal-cluster ` .
88+ As non-encrypted connections are rejected by default set SSL mode to ` require ` :
8989
9090``` bash
9191export PGPASSWORD=$( kubectl get secret postgres.acid-minimal-cluster.credentials.postgresql.acid.zalan.do -o ' jsonpath={.data.password}' | base64 -d)
9292export PGSSLMODE=require
9393psql -U postgres -h localhost -p 6432
9494```
9595
96+ ## Password encryption
97+
98+ Passwords are encrypted with ` md5 ` hash generation by default. However, it is
99+ possible to use the more recent ` scram-sha-256 ` method by changing the
100+ ` password_encryption ` parameter in the Postgres config. You can define it
101+ directly from the cluster manifest:
102+
103+ ``` yaml
104+ apiVersion : " acid.zalan.do/v1"
105+ kind : postgresql
106+ metadata :
107+ name : acid-minimal-cluster
108+ spec :
109+ [...]
110+ postgresql :
111+ version : " 14"
112+ parameters :
113+ password_encryption : scram-sha-256
114+ ` ` `
115+
96116## Defining database roles in the operator
97117
98118Postgres Operator allows defining roles to be created in the resulting database
Original file line number Diff line number Diff line change 1717 # connection_pooler_default_cpu_request: "500m"
1818 # connection_pooler_default_memory_limit: 100Mi
1919 # connection_pooler_default_memory_request: 100Mi
20- connection_pooler_image : " registry.opensource.zalan.do/acid/pgbouncer:master-19 "
20+ connection_pooler_image : " registry.opensource.zalan.do/acid/pgbouncer:master-22 "
2121 # connection_pooler_max_db_connections: 60
2222 # connection_pooler_mode: "transaction"
2323 # connection_pooler_number_of_instances: 2
Original file line number Diff line number Diff line change 2323 serviceAccountName : postgres-operator
2424 containers :
2525 - name : postgres-operator
26- image : registry.opensource.zalan.do/acid/pgbouncer:master-19
26+ image : registry.opensource.zalan.do/acid/pgbouncer:master-22
2727 imagePullPolicy : IfNotPresent
2828 resources :
2929 requests :
Original file line number Diff line number Diff line change @@ -586,7 +586,7 @@ spec:
586586 default : " pooler"
587587 connection_pooler_image :
588588 type : string
589- default : " registry.opensource.zalan.do/acid/pgbouncer:master-19 "
589+ default : " registry.opensource.zalan.do/acid/pgbouncer:master-22 "
590590 connection_pooler_max_db_connections :
591591 type : integer
592592 default : 60
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ configuration:
187187 connection_pooler_default_cpu_request : " 500m"
188188 connection_pooler_default_memory_limit : 100Mi
189189 connection_pooler_default_memory_request : 100Mi
190- connection_pooler_image : " registry.opensource.zalan.do/acid/pgbouncer:master-19 "
190+ connection_pooler_image : " registry.opensource.zalan.do/acid/pgbouncer:master-22 "
191191 # connection_pooler_max_db_connections: 60
192192 connection_pooler_mode : " transaction"
193193 connection_pooler_number_of_instances : 2
You can’t perform that action at this time.
0 commit comments