diff --git a/charts/prometheus-blackbox-exporter/Chart.yaml b/charts/prometheus-blackbox-exporter/Chart.yaml index 420fffd67eb1..6f9817f3e236 100644 --- a/charts/prometheus-blackbox-exporter/Chart.yaml +++ b/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: diff --git a/charts/prometheus-blackbox-exporter/templates/_helpers.tpl b/charts/prometheus-blackbox-exporter/templates/_helpers.tpl index 4e28e55871bf..dd04f3129705 100644 --- a/charts/prometheus-blackbox-exporter/templates/_helpers.tpl +++ b/charts/prometheus-blackbox-exporter/templates/_helpers.tpl @@ -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: diff --git a/charts/prometheus-blackbox-exporter/values.yaml b/charts/prometheus-blackbox-exporter/values.yaml index bf8b7beb0f73..8d0924ebd821 100644 --- a/charts/prometheus-blackbox-exporter/values.yaml +++ b/charts/prometheus-blackbox-exporter/values.yaml @@ -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