From 455e39a8bdf49ed7ce93c2f41bf24ca2432744c2 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 9 Sep 2020 18:21:27 +0200 Subject: [PATCH] helm: make replicas configurable --- helm/templates/web-deployment.yaml | 2 +- helm/templates/worker-deployment.yaml | 2 +- helm/values.yaml | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/helm/templates/web-deployment.yaml b/helm/templates/web-deployment.yaml index 7daeb5e45..b5386dba4 100644 --- a/helm/templates/web-deployment.yaml +++ b/helm/templates/web-deployment.yaml @@ -9,7 +9,7 @@ metadata: app.kubernetes.io/managed-by: {{ .Release.Service }} k8s.passbook.beryju.org/component: web spec: - replicas: 2 + replicas: {{ serverReplicas }} selector: matchLabels: app.kubernetes.io/name: {{ include "passbook.name" . }} diff --git a/helm/templates/worker-deployment.yaml b/helm/templates/worker-deployment.yaml index ffc21fe46..0f18d09ba 100644 --- a/helm/templates/worker-deployment.yaml +++ b/helm/templates/worker-deployment.yaml @@ -9,7 +9,7 @@ metadata: app.kubernetes.io/managed-by: {{ .Release.Service }} k8s.passbook.beryju.org/component: worker spec: - replicas: 1 + replicas: {{ workerReplicas }} selector: matchLabels: app.kubernetes.io/name: {{ include "passbook.name" . }} diff --git a/helm/values.yaml b/helm/values.yaml index 7444f955e..46f8558ba 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -8,6 +8,9 @@ image: nameOverride: "" +serverReplicas: 1 +workerReplicas: 1 + config: # Optionally specify fixed secret_key, otherwise generated automatically # secret_key: _k*@6h2u2@q-dku57hhgzb7tnx*ba9wodcb^s9g0j59@=y(@_o