Skip to content

Commit a3c195b

Browse files
authored
Merge pull request #37 from toscott/feature/multiple_replicas
Support configurable number of replicas on the deployment
2 parents 0e7da11 + d874961 commit a3c195b

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

charts/opencost/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords:
99
- kubecost
1010
- opencost
1111
- monitoring
12-
version: 1.4.0
12+
version: 1.5.0
1313
maintainers:
1414
- name: mattray
1515
url: https://mattray.dev

charts/opencost/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
OpenCost and OpenCost UI
44

5-
![Version: 1.4.0](https://img.shields.io/badge/Version-1.4.0-informational?style=flat-square)
5+
![Version: 1.5.0](https://img.shields.io/badge/Version-1.5.0-informational?style=flat-square)
66
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
7-
![AppVersion: 1.100.2](https://img.shields.io/badge/AppVersion-1.100.2-informational?style=flat-square)
7+
![AppVersion: 1.101.2](https://img.shields.io/badge/AppVersion-1.101.2-informational?style=flat-square)
88

99
## Maintainers
1010

@@ -34,6 +34,7 @@ $ helm install opencost opencost/opencost
3434
| opencost.exporter.image.registry | string | `"quay.io"` | Exporter container image registry |
3535
| opencost.exporter.image.repository | string | `"kubecost1/kubecost-cost-model"` | Exporter container image name |
3636
| opencost.exporter.image.tag | string | `""` (use appVersion in Chart.yaml) | Exporter container image tag |
37+
| opencost.exporter.replicas | int | `1` | Number of OpenCost replicas to run |
3738
| opencost.exporter.resources.limits | object | `{"cpu":"999m","memory":"1Gi"}` | CPU/Memory resource limits |
3839
| opencost.exporter.resources.requests | object | `{"cpu":"10m","memory":"55Mi"}` | CPU/Memory resource requests |
3940
| opencost.metrics.serviceMonitor.additionalLabels | object | `{}` | Additional labels to add to the ServiceMonitor |

charts/opencost/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ metadata:
1010
annotations: {{ toYaml .Values.annotations | nindent 4 }}
1111
{{- end }}
1212
spec:
13-
replicas: 1
13+
replicas: {{ .Values.opencost.exporter.replicas }}
1414
selector:
1515
matchLabels:
1616
{{- include "opencost.selectorLabels" . | nindent 6 }}

charts/opencost/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ opencost:
3535
# -- Exporter container image tag
3636
# @default -- `""` (use appVersion in Chart.yaml)
3737
tag: ""
38+
# -- Number of OpenCost replicas to run
39+
replicas: 1
3840
resources:
3941
# -- CPU/Memory resource requests
4042
requests:

0 commit comments

Comments
 (0)