diff --git a/charts/prometheus-blackbox-exporter/Chart.yaml b/charts/prometheus-blackbox-exporter/Chart.yaml index fe4cc76f..08507350 100644 --- a/charts/prometheus-blackbox-exporter/Chart.yaml +++ b/charts/prometheus-blackbox-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Prometheus Blackbox Exporter name: prometheus-blackbox-exporter -version: 4.11.0 +version: 4.12.0 appVersion: 0.18.0 home: https://github.com/prometheus/blackbox_exporter sources: diff --git a/charts/prometheus-blackbox-exporter/templates/daemonset.yaml b/charts/prometheus-blackbox-exporter/templates/daemonset.yaml index 385e2d9e..35bc3862 100644 --- a/charts/prometheus-blackbox-exporter/templates/daemonset.yaml +++ b/charts/prometheus-blackbox-exporter/templates/daemonset.yaml @@ -78,7 +78,11 @@ spec: {{- end }} args: {{- if (or .Values.config .Values.configExistingSecretName) }} + {{- if .Values.configPath }} + - "--config.file={{ .Values.configPath }}" + {{- else }} - "--config.file=/config/blackbox.yaml" + {{- end }} {{- else }} - "--config.file=/etc/blackbox_exporter/config.yml" {{- end }} diff --git a/charts/prometheus-blackbox-exporter/templates/deployment.yaml b/charts/prometheus-blackbox-exporter/templates/deployment.yaml index ef3bfe52..0f248b93 100644 --- a/charts/prometheus-blackbox-exporter/templates/deployment.yaml +++ b/charts/prometheus-blackbox-exporter/templates/deployment.yaml @@ -89,7 +89,11 @@ spec: {{- end }} args: {{- if .Values.config }} + {{- if .Values.configPath }} + - "--config.file={{ .Values.configPath }}" + {{- else }} - "--config.file=/config/blackbox.yaml" + {{- end }} {{- else }} - "--config.file=/etc/blackbox_exporter/config.yml" {{- end }} diff --git a/charts/prometheus-blackbox-exporter/values.yaml b/charts/prometheus-blackbox-exporter/values.yaml index 7d70c9c9..61f498d0 100644 --- a/charts/prometheus-blackbox-exporter/values.yaml +++ b/charts/prometheus-blackbox-exporter/values.yaml @@ -102,6 +102,9 @@ config: no_follow_redirects: false preferred_ip_protocol: "ip4" +# Set custom config path, other than default /config/blackbox.yaml. If let empty, path will be "/config/blackbox.yaml" +# configPath: "/foo/bar" + extraConfigmapMounts: [] # - name: certs-configmap # mountPath: /etc/secrets/ssl/