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).