From fd434631c61cd7c8b3940ef6f1c65329f85611ff Mon Sep 17 00:00:00 2001 From: Tyler Lubeck Date: Wed, 7 Sep 2022 18:42:25 -0500 Subject: [PATCH] Make pgbouncer deployment size variable Closes #24954 --- chart/templates/pgbouncer/pgbouncer-deployment.yaml | 2 +- chart/values.schema.json | 6 ++++++ chart/values.yaml | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/chart/templates/pgbouncer/pgbouncer-deployment.yaml b/chart/templates/pgbouncer/pgbouncer-deployment.yaml index fb8c784842af0..9a2da3109b54a 100644 --- a/chart/templates/pgbouncer/pgbouncer-deployment.yaml +++ b/chart/templates/pgbouncer/pgbouncer-deployment.yaml @@ -38,7 +38,7 @@ metadata: {{ toYaml . | indent 4 }} {{- end }} spec: - replicas: 1 + replicas: {{ .Values.pgbouncer.replicas }} {{- if $revisionHistoryLimit }} revisionHistoryLimit: {{ $revisionHistoryLimit }} {{- end }} diff --git a/chart/values.schema.json b/chart/values.schema.json index 1fd996d18ae83..496371c682c48 100644 --- a/chart/values.schema.json +++ b/chart/values.schema.json @@ -4148,6 +4148,12 @@ "x-docsSection": "Common", "default": false }, + "replicas": { + "description": "Number of pgbouncer pods to deploy", + "type": "integer", + "x-docsSection": "PgBouncer", + "default": 1, + }, "revisionHistoryLimit": { "description": "Number of old replicasets to retain.", "type": [ diff --git a/chart/values.yaml b/chart/values.yaml index 20edc3405611f..e1b0667b20a50 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -1372,6 +1372,8 @@ statsd: pgbouncer: # Enable PgBouncer enabled: false + # Number of pgbouncer pods to deploy + replicas: 1 # Max number of old replicasets to retain revisionHistoryLimit: ~ # Command to use for PgBouncer(templated).