Skip to content

Commit

Permalink
[prometheus-blackbox-exporter] allow configurable DNS settings (prome…
Browse files Browse the repository at this point in the history
…theus-community#42)

* [prometheus-blackbox-exporter] allow configurable dnsPolicy and dnsConfig

Signed-off-by: John Stewart <jstewart@rentpath.com>

* [prometheus-blackbox-exporter] allow configurable DNS settings - nindent fixes

Signed-off-by: John Stewart <jstewart@rentpath.com>

* [prometheus-blackbox-exporter] allow configurable DNS settings - defaults and version fixes

Signed-off-by: John Stewart <jstewart@rentpath.com>
Signed-off-by: André Bauer <andre.bauer@kiwigrid.com>
  • Loading branch information
jstewart612 authored and André Bauer committed Oct 7, 2020
1 parent b852c05 commit 11408fe
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-blackbox-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Prometheus Blackbox Exporter
name: prometheus-blackbox-exporter
version: 4.3.2
version: 4.4.0
appVersion: 0.16.0
home: https://github.com/prometheus/blackbox_exporter
sources:
Expand Down
7 changes: 7 additions & 0 deletions charts/prometheus-blackbox-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ spec:
subPath: {{ .subPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- if .Values.dnsPolicy }}
dnsPolicy: {{ .Values.dnsPolicy | toString }}
{{- end }}
{{- if .Values.dnsConfig }}
dnsConfig:
{{- toYaml .Values.dnsConfig | nindent 8 }}
{{- end }}
volumes:
- name: config
{{- if .Values.secretConfig }}
Expand Down
7 changes: 7 additions & 0 deletions charts/prometheus-blackbox-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ spec:
subPath: {{ .subPath }}
readOnly: {{ .readOnly }}
{{- end }}
{{- if .Values.dnsPolicy }}
dnsPolicy: {{ .Values.dnsPolicy | toString }}
{{- end }}
{{- if .Values.dnsConfig }}
dnsConfig:
{{- toYaml .Values.dnsConfig | nindent 8 }}
{{- end }}
volumes:
- name: config
{{- if .Values.secretConfig }}
Expand Down
5 changes: 5 additions & 0 deletions charts/prometheus-blackbox-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,8 @@ networkPolicy:
enabled: false
# Limit access only from monitoring namespace
allowMonitoringNamespace: false

## dnsPolicy and dnsConfig for Deployments and Daemonsets if you want non-default settings.
## These will be passed directly to the PodSpec of same.
dnsPolicy:
dnsConfig:

0 comments on commit 11408fe

Please sign in to comment.