diff --git a/stable/prometheus-node-exporter/Chart.yaml b/stable/prometheus-node-exporter/Chart.yaml index 2f891c9da6..3e64819fd8 100644 --- a/stable/prometheus-node-exporter/Chart.yaml +++ b/stable/prometheus-node-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "0.16.0" description: A Helm chart for prometheus node-exporter name: prometheus-node-exporter -version: 0.4.0 +version: 0.5.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 b6b712aed8..e4abb1ad1b 100644 --- a/stable/prometheus-node-exporter/README.md +++ b/stable/prometheus-node-exporter/README.md @@ -42,6 +42,7 @@ The following table lists the configurable parameters of the Node Exporter chart | `image.tag` | Image tag | `v0.16.0` | | | `image.pullPolicy` | Image pull policy | `IfNotPresent` | | | `extraArgs` | Additional container arguments | `[]` | | +| `extraHostVolumeMounts` | Additional host volume mounts | {} | | | `podLabels` | Additional labels to be added to pods | {} | | | `rbac.create` | If true, create & use RBAC resources | `true` | | | `rbac.pspEnabled` | Specifies whether a PodSecurityPolicy should be created. | `true` | | diff --git a/stable/prometheus-node-exporter/templates/daemonset.yaml b/stable/prometheus-node-exporter/templates/daemonset.yaml index 829ce602d4..e60a8c1fcf 100644 --- a/stable/prometheus-node-exporter/templates/daemonset.yaml +++ b/stable/prometheus-node-exporter/templates/daemonset.yaml @@ -54,6 +54,13 @@ spec: - name: sys mountPath: /host/sys readOnly: true + {{- if .Values.extraHostVolumeMounts }} + {{- range $_, $mount := .Values.extraHostVolumeMounts }} + - name: {{ $mount.name }} + mountPath: {{ $mount.mountPath }} + readOnly: {{ $mount.readOnly }} + {{- end }} + {{- end }} hostNetwork: true hostPID: true {{- with .Values.tolerations }} @@ -67,3 +74,10 @@ spec: - name: sys hostPath: path: /sys + {{- if .Values.extraHostVolumeMounts }} + {{- range $_, $mount := .Values.extraHostVolumeMounts }} + - name: {{ $mount.name }} + hostPath: + path: {{ $mount.hostPath }} + {{- end }} + {{- end }} diff --git a/stable/prometheus-node-exporter/values.yaml b/stable/prometheus-node-exporter/values.yaml index effe0b42da..6fac1b1bcd 100644 --- a/stable/prometheus-node-exporter/values.yaml +++ b/stable/prometheus-node-exporter/values.yaml @@ -53,3 +53,11 @@ tolerations: ## extraArgs: {} # - --collector.diskstats.ignored-devices=^(ram|loop|fd|(h|s|v)d[a-z]|nvme\\d+n\\d+p)\\d+$ + +## Additional mounts from the host +## +extraHostVolumeMounts: {} +# - name: +# hostPath: +# mountPath: +# readOnly: true|false