Skip to content

Commit

Permalink
Ability for custom dnsConfig on prometheus-node-exporter (prometheus-…
Browse files Browse the repository at this point in the history
…community#644)

Signed-off-by: Stavros Foteinopoulos <[email protected]>
  • Loading branch information
stafot authored Feb 10, 2021
1 parent 9980523 commit a16898e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-node-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 1.0.1
description: A Helm chart for prometheus node-exporter
name: prometheus-node-exporter
version: 1.14.2
version: 1.15.0
home: https://github.com/prometheus/node_exporter/
sources:
- https://github.com/prometheus/node_exporter/
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-node-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ spec:
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
{{- with .Values.dnsConfig }}
dnsConfig:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
Expand Down
12 changes: 12 additions & 0 deletions charts/prometheus-node-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,18 @@ podAnnotations:
# Extra labels to be added to node exporter pods
podLabels: {}

# Custom DNS configuration to be added to prometheus-node-exporter pods
dnsConfig: {}
# nameservers:
# - 1.2.3.4
# searches:
# - ns1.svc.cluster-domain.example
# - my.dns.search.suffix
# options:
# - name: ndots
# value: "2"
# - name: edns0

## Assign a nodeSelector if operating a hybrid cluster
##
nodeSelector: {}
Expand Down

0 comments on commit a16898e

Please sign in to comment.