Skip to content

Commit

Permalink
[prometheus-kafka-exporter] Add LoadBalancer Service Type (prometheus…
Browse files Browse the repository at this point in the history
…-community#3830)

* [prometheus-kafka-exporter]: Add loadBalancerIP to specify a reserved static IP

Signed-off-by: KimJoonSeo <[email protected]>

* [prometheus-kafka-exporter]: Update a chart version

Signed-off-by: KimJoonSeo <[email protected]>

* Update charts/prometheus-kafka-exporter/values.yaml

Co-authored-by: zeritti <[email protected]>
Signed-off-by: Joon Seo Kim <[email protected]>

* Update charts/prometheus-kafka-exporter/values.yaml

Co-authored-by: zeritti <[email protected]>
Signed-off-by: Joon Seo Kim <[email protected]>

---------

Signed-off-by: KimJoonSeo <[email protected]>
Signed-off-by: Joon Seo Kim <[email protected]>
Co-authored-by: zeritti <[email protected]>
  • Loading branch information
2 people authored and Matiasmct committed Mar 20, 2024
1 parent 6f7d74d commit 5736221
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-kafka-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: "v1.7.0"
description: A Helm chart to export the metrics from Kafka in Prometheus format using the kafka-exporter from https://github.com/danielqsj/kafka_exporter
name: prometheus-kafka-exporter
home: https://github.com/danielqsj/kafka_exporter
version: 2.6.0
version: 2.7.0
kubeVersion: ">=1.19.0-0"
sources:
- https://gkarthiks.github.io/helm-charts/charts/prometheus-kafka-exporter
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus-kafka-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if and (eq .Values.service.type "LoadBalancer") (.Values.service.loadBalancerIP) }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
ports:
- port: {{ .Values.service.port }}
targetPort: exporter-port
Expand Down
6 changes: 4 additions & 2 deletions charts/prometheus-kafka-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ service:
port: 9308
labels: {}
annotations: {}
# Specifies a custom nodePort for external use.
# Must be used with service.type=NodePort.
# Specifies a custom nodePort for external use. Used with service.type=NodePort.
nodePort: null
# Specifies a reserved static IP. Used with service.type=LoadBalancer.
# The field is deprecated, implementation-specific annotations should be set instead.
loadBalancerIP: null

liveness:
enabled: false
Expand Down

0 comments on commit 5736221

Please sign in to comment.