Skip to content

Commit

Permalink
[prometheus-blackbox-exporter] Add value for hostPort (#4469)
Browse files Browse the repository at this point in the history
* [prometheus-blackbox-exporter] Add value for hostPort

Signed-off-by: Yigit Ozen <canyigitozen@gmail.com>

* [prometheus-blackbox-exporter] Bump chart version

Signed-off-by: Yigit Ozen <canyigitozen@gmail.com>

---------

Signed-off-by: Yigit Ozen <canyigitozen@gmail.com>
  • Loading branch information
ozen committed Apr 24, 2024
1 parent a1a6d92 commit dff13d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-blackbox-exporter/Chart.yaml
@@ -1,7 +1,7 @@
apiVersion: v2
description: Prometheus Blackbox Exporter
name: prometheus-blackbox-exporter
version: 8.15.2
version: 8.16.0
appVersion: v0.25.0
home: https://github.com/prometheus/blackbox_exporter
sources:
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus-blackbox-exporter/templates/_helpers.tpl
Expand Up @@ -247,6 +247,9 @@ containers:
ports:
- containerPort: {{ .Values.containerPort }}
name: http
{{- if .Values.hostPort }}
hostPort: {{ .Values.hostPort }}
{{- end }}
livenessProbe:
{{- toYaml .Values.livenessProbe | trim | nindent 4 }}
readinessProbe:
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-blackbox-exporter/values.yaml
Expand Up @@ -213,6 +213,10 @@ service:
# https://github.com/prometheus/blackbox_exporter/blob/998037b5b40c1de5fee348ffdea8820509d85171/main.go#L55
containerPort: 9115

# Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If zero, no port is exposed.
# This is useful for communicating with Daemon Pods when kind is DaemonSet.
hostPort: 0

serviceAccount:
# Specifies whether a ServiceAccount should be created
create: true
Expand Down

0 comments on commit dff13d5

Please sign in to comment.