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 }}
k8s.passbook.beryju.org/component: web
spec:
replicas: 2
replicas: {{ serverReplicas }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "passbook.name" . }}

View File

@ -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" . }}

View File

@ -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