From 6f9b3da3d2f9e28ef249d1869a1b90f5cea96b19 Mon Sep 17 00:00:00 2001 From: Yigit Ozen Date: Fri, 19 Apr 2024 02:08:35 +0300 Subject: [PATCH 1/2] [prometheus-blackbox-exporter] Add value for hostPort Signed-off-by: Yigit Ozen --- charts/prometheus-blackbox-exporter/templates/_helpers.tpl | 3 +++ charts/prometheus-blackbox-exporter/values.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/charts/prometheus-blackbox-exporter/templates/_helpers.tpl b/charts/prometheus-blackbox-exporter/templates/_helpers.tpl index 30039b893efc..2f93b57e2a21 100644 --- a/charts/prometheus-blackbox-exporter/templates/_helpers.tpl +++ b/charts/prometheus-blackbox-exporter/templates/_helpers.tpl @@ -245,6 +245,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 From 340107946ff0567eed67312237adac5ebd755879 Mon Sep 17 00:00:00 2001 From: Yigit Ozen Date: Tue, 23 Apr 2024 15:34:16 +0300 Subject: [PATCH 2/2] [prometheus-blackbox-exporter] Bump chart version Signed-off-by: Yigit Ozen --- charts/prometheus-blackbox-exporter/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: