helm: make replicas configurable

This commit is contained in:
Jens Langhammer 2020-09-09 18:21:27 +02:00
parent a7d8ac888a
commit 455e39a8bd
3 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,7 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
k8s.passbook.beryju.org/component: web k8s.passbook.beryju.org/component: web
spec: spec:
replicas: 2 replicas: {{ serverReplicas }}
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: {{ include "passbook.name" . }} app.kubernetes.io/name: {{ include "passbook.name" . }}

View File

@ -9,7 +9,7 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
k8s.passbook.beryju.org/component: worker k8s.passbook.beryju.org/component: worker
spec: spec:
replicas: 1 replicas: {{ workerReplicas }}
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: {{ include "passbook.name" . }} app.kubernetes.io/name: {{ include "passbook.name" . }}

View File

@ -8,6 +8,9 @@ image:
nameOverride: "" nameOverride: ""
serverReplicas: 1
workerReplicas: 1
config: config:
# Optionally specify fixed secret_key, otherwise generated automatically # Optionally specify fixed secret_key, otherwise generated automatically
# secret_key: _k*@6h2u2@q-dku57hhgzb7tnx*ba9wodcb^s9g0j59@=y(@_o # secret_key: _k*@6h2u2@q-dku57hhgzb7tnx*ba9wodcb^s9g0j59@=y(@_o