diff --git a/stable/prometheus-node-exporter/Chart.yaml b/stable/prometheus-node-exporter/Chart.yaml index 5876c996c2..cbf7e7a618 100644 --- a/stable/prometheus-node-exporter/Chart.yaml +++ b/stable/prometheus-node-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "0.18.0" description: A Helm chart for prometheus node-exporter name: prometheus-node-exporter -version: 1.5.2 +version: 1.6.0 home: https://github.com/prometheus/node_exporter/ sources: - https://github.com/prometheus/node_exporter/ diff --git a/stable/prometheus-node-exporter/README.md b/stable/prometheus-node-exporter/README.md index ed46d568bd..fb532ef905 100644 --- a/stable/prometheus-node-exporter/README.md +++ b/stable/prometheus-node-exporter/README.md @@ -66,6 +66,7 @@ The following table lists the configurable parameters of the Node Exporter chart | `prometheus.monitor.additionalLabels` | Additional labels that can be used so ServiceMonitor will be discovered by Prometheus | `{}` | | | `prometheus.monitor.namespace` | namespace where servicemonitor resource should be created | `the same namespace as prometheus node exporter` | | | `prometheus.monitor.scrapeTimeout` | Timeout after which the scrape is ended | `10s` | | +| `configmaps` | Allow mounting additional configmaps. | `{}` | | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/stable/prometheus-node-exporter/templates/daemonset.yaml b/stable/prometheus-node-exporter/templates/daemonset.yaml index f4c982bb67..65ffaf8212 100644 --- a/stable/prometheus-node-exporter/templates/daemonset.yaml +++ b/stable/prometheus-node-exporter/templates/daemonset.yaml @@ -68,6 +68,12 @@ spec: {{- end }} {{- end }} {{- end }} + {{- if .Values.configmaps }} + {{- range $_, $mount := .Values.configmaps }} + - name: {{ $mount.name }} + mountPath: {{ $mount.mountPath }} + {{- end }} + {{- end }} hostNetwork: {{ .Values.hostNetwork }} hostPID: true {{- if .Values.affinity }} @@ -96,3 +102,10 @@ spec: path: {{ $mount.hostPath }} {{- end }} {{- end }} + {{- if .Values.configmaps }} + {{- range $_, $mount := .Values.configmaps }} + - name: {{ $mount.name }} + configMap: + name: {{ $mount.name }} + {{- end }} + {{- end }} diff --git a/stable/prometheus-node-exporter/values.yaml b/stable/prometheus-node-exporter/values.yaml index b73b75c54c..9fa068630f 100644 --- a/stable/prometheus-node-exporter/values.yaml +++ b/stable/prometheus-node-exporter/values.yaml @@ -99,3 +99,9 @@ extraHostVolumeMounts: {} # mountPath: # readOnly: true|false # mountPropagation: None|HostToContainer|Bidirectional + +## Additional configmaps to be mounted. +## +configmaps: {} +# - name: +# mountPath: