Skip to content

Commit 028f23e

Browse files
authored
raise pooler image and fix pgversion config in chart (zalando#1253)
* raise pooler image and fix pgversion config in chart * enable_ebs_gp3_migration_max_size with quotes * set ConnectionPoolerMinInstances to 1
1 parent b88d8e3 commit 028f23e

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

charts/postgres-operator/crds/operatorconfigurations.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ spec:
6969
type: boolean
7070
enable_lazy_spilo_upgrade:
7171
type: boolean
72+
enable_pgversion_env_var:
73+
type: boolean
7274
enable_shm_volume:
7375
type: boolean
7476
etcd_host:

charts/postgres-operator/values-crd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ configGeneral:
2222
# update only the statefulsets without immediately doing the rolling update
2323
enable_lazy_spilo_upgrade: false
2424
# set the PGVERSION env var instead of providing the version via postgresql.bin_dir in SPILO_CONFIGURATION
25-
enable_pgversion_env_var: "false"
25+
enable_pgversion_env_var: false
2626
# start any new database pod without limitations on shm memory
2727
enable_shm_volume: true
2828
# etcd connection string for Patroni. Empty uses K8s-native DCS.
@@ -270,7 +270,7 @@ configTeamsApi:
270270
# operator watches for PostgresTeam CRs to assign additional teams and members to clusters
271271
enable_postgres_team_crd: false
272272
# toogle to create additional superuser teams from PostgresTeam CRs
273-
# enable_postgres_team_crd_superusers: "false"
273+
# enable_postgres_team_crd_superusers: false
274274

275275
# toggle to grant superuser to team members created from the Teams API
276276
enable_team_superuser: false

charts/postgres-operator/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ configAwsOrGcp:
217217
# enable automatic migration on AWS from gp2 to gp3 volumes
218218
enable_ebs_gp3_migration: "false"
219219
# defines maximum volume size in GB until which auto migration happens
220-
# enable_ebs_gp3_migration_max_size: 1000
220+
# enable_ebs_gp3_migration_max_size: "1000"
221221

222222
# GCP credentials for setting the GOOGLE_APPLICATION_CREDNETIALS environment variable
223223
# gcp_credentials: ""

manifests/configmap.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ data:
1515
# connection_pooler_default_cpu_request: "500m"
1616
# connection_pooler_default_memory_limit: 100Mi
1717
# connection_pooler_default_memory_request: 100Mi
18-
connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-11"
18+
connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-12"
1919
# connection_pooler_max_db_connections: 60
2020
# connection_pooler_mode: "transaction"
2121
# connection_pooler_number_of_instances: 2
@@ -37,10 +37,11 @@ data:
3737
# enable_crd_validation: "true"
3838
# enable_database_access: "true"
3939
enable_ebs_gp3_migration: "false"
40-
# enable_ebs_gp3_migration_max_size: 1000
40+
# enable_ebs_gp3_migration_max_size: "1000"
4141
# enable_init_containers: "true"
4242
# enable_lazy_spilo_upgrade: "false"
4343
enable_master_load_balancer: "false"
44+
# enable_pgversion_env_var: "false"
4445
# enable_pod_antiaffinity: "false"
4546
# enable_pod_disruption_budget: "true"
4647
# enable_postgres_team_crd: "false"

manifests/minimal-fake-pooler-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
serviceAccountName: postgres-operator
2424
containers:
2525
- name: postgres-operator
26-
image: registry.opensource.zalan.do/acid/pgbouncer:master-11
26+
image: registry.opensource.zalan.do/acid/pgbouncer:master-12
2727
imagePullPolicy: IfNotPresent
2828
resources:
2929
requests:

manifests/postgresql-operator-default-configuration.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ configuration:
66
docker_image: registry.opensource.zalan.do/acid/spilo-12:1.6-p3
77
# enable_crd_validation: true
88
# enable_lazy_spilo_upgrade: false
9+
# enable_pgversion_env_var: false
910
# enable_shm_volume: true
1011
etcd_host: ""
1112
# kubernetes_use_configmaps: false

pkg/util/constants/pooler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ const (
1414
ConnectionPoolerContainer = 0
1515
ConnectionPoolerMaxDBConnections = 60
1616
ConnectionPoolerMaxClientConnections = 10000
17-
ConnectionPoolerMinInstances = 2
17+
ConnectionPoolerMinInstances = 1
1818
)

0 commit comments

Comments
 (0)