Skip to content

Commit 5ac1970

Browse files
committed
make replicas configurable
1 parent 1daa5db commit 5ac1970

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

helm-chart/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
app: my-app
77
spec:
8-
replicas: 3
8+
replicas: {{ .Values.deployment.replicas }}
99
selector:
1010
matchLabels:
1111
app: my-app

helm-chart/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ catMode: true
99

1010
service:
1111
type: ClusterIP
12+
13+
deployment:
14+
replicas: 1

0 commit comments

Comments
 (0)