Skip to content

Commit 2befc76

Browse files
authored
chore(collector): add statefulset replicas to helm chart (#3096)
1 parent d14ae14 commit 2befc76

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

deploy/charts/benthos-collector/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ helm install --generate-name --wait oci://ghcr.io/openmeterio/helm-charts/bentho
2525
| image.repository | string | `"ghcr.io/openmeterio/benthos-collector"` | Name of the image repository to pull the container image from. |
2626
| image.pullPolicy | string | `"IfNotPresent"` | [Image pull policy](https://kubernetes.io/docs/concepts/containers/images/#updating-images) for updating already existing images on a node. |
2727
| image.tag | string | `""` | Image tag override for the default value (chart appVersion). |
28+
| replicaCount | int | `1` | Number of replicas of pods in the StatefulSet |
2829
| openmeter.url | string | `"https://openmeter.cloud"` | OpenMeter API URL |
2930
| openmeter.token | string | `""` | OpenMeter token |
3031
| config | object | `{}` | Benthos configuration Takes precedence over `configFile` and `preset`. |

deploy/charts/benthos-collector/templates/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
{{- include "benthos-collector.labels" . | nindent 4 }}
77
spec:
8-
replicas: 1
8+
replicas: {{ .Values.replicaCount | int }}
99
serviceName: {{ include "benthos-collector.fullname" . }}
1010
selector:
1111
matchLabels:

deploy/charts/benthos-collector/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ image:
1212
# -- Image tag override for the default value (chart appVersion).
1313
tag: ""
1414

15+
# -- Number of replicas of pods in the StatefulSet
16+
replicaCount: 1
17+
1518
openmeter:
1619
# -- OpenMeter API URL
1720
url: https://openmeter.cloud

0 commit comments

Comments
 (0)