Skip to content

Commit a2e3c2e

Browse files
authored
Add deployment.replicas helm value (#465)
Discussed in aws-controllers-k8s/community#1890 (comment) Add `deployment.replicas` helm value By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 8bce316 commit a2e3c2e

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

templates/helm/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
k8s-app: {{ include "app.name" . }}
1212
helm.sh/chart: {{ include "chart.name-version" . }}
1313
spec:
14-
replicas: 1
14+
replicas: {{ .Values.deployment.replicas }}
1515
selector:
1616
matchLabels:
1717
app.kubernetes.io/name: {{ include "app.name" . }}

templates/helm/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
"minimum": 1,
4848
"maximum": 65535
4949
},
50+
"replicas": {
51+
"type": "integer"
52+
},
5053
"nodeSelector": {
5154
"type": "object"
5255
},

templates/helm/values.yaml.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ deployment:
1515
annotations: {}
1616
labels: {}
1717
containerPort: 8080
18+
# Number of Deployment replicas
19+
# This determines how many instances of the controller will be running. It's recommended
20+
# to enable leader election if you need to increase the number of replicas > 1
21+
replicas: 1
1822
# Which nodeSelector to set?
1923
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
2024
nodeSelector:

0 commit comments

Comments
 (0)