mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user