[prometheus-node-exporter] allow setting additional host mounts (#8117)

* [prometheus-node-exporter] allow setting additional host mounts

Signed-off-by: Arno Uhlig <arno.uhlig@sap.com>

* bump to 0.5.0

Signed-off-by: Arno Uhlig <arno.uhlig@sap.com>
This commit is contained in:
Arno Uhlig
2018-10-04 04:44:51 -07:00
committed by k8s-ci-robot
parent 38b43e611a
commit fe0f8e2dc7
4 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -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/
@@ -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` | |
@@ -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 }}
@@ -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: <mountName>
# hostPath: <hostPath>
# mountPath: <mountPath>
# readOnly: true|false