File tree 3 files changed +11
-1
lines changed
charts/prometheus-node-exporter
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v1
2
2
appVersion : 1.1.2
3
3
description : A Helm chart for prometheus node-exporter
4
4
name : prometheus-node-exporter
5
- version : 1.16.0
5
+ version : 1.16.1
6
6
home : https://github.com/prometheus/node_exporter/
7
7
sources :
8
8
- https://github.com/prometheus/node_exporter/
Original file line number Diff line number Diff line change 38
38
args :
39
39
- --path.procfs=/host/proc
40
40
- --path.sysfs=/host/sys
41
+ {{- if .Values.hostRootFsMount }}
41
42
- --path.rootfs=/host/root
43
+ {{- end }}
42
44
- --web.listen-address=$(HOST_IP):{{ .Values.service.port }}
43
45
{{- if .Values.extraArgs }}
44
46
{{ toYaml .Values.extraArgs | indent 12 }}
@@ -77,10 +79,12 @@ spec:
77
79
- name : sys
78
80
mountPath : /host/sys
79
81
readOnly : true
82
+ {{- if .Values.hostRootFsMount }}
80
83
- name : root
81
84
mountPath : /host/root
82
85
mountPropagation : HostToContainer
83
86
readOnly : true
87
+ {{- end }}
84
88
{{- if .Values.extraHostVolumeMounts }}
85
89
{{- range $_, $mount := .Values.extraHostVolumeMounts }}
86
90
- name : {{ $mount.name }}
@@ -146,9 +150,11 @@ spec:
146
150
- name : sys
147
151
hostPath :
148
152
path : /sys
153
+ {{- if .Values.hostRootFsMount }}
149
154
- name : root
150
155
hostPath :
151
156
path : /
157
+ {{- end }}
152
158
{{- if .Values.extraHostVolumeMounts }}
153
159
{{- range $_, $mount := .Values.extraHostVolumeMounts }}
154
160
- name : {{ $mount.name }}
Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ endpoints: []
80
80
# Expose the service to the host network
81
81
hostNetwork : true
82
82
83
+ # # If true, node-exporter pods mounts host / at /host/root
84
+ # #
85
+ hostRootFsMount : true
86
+
83
87
# # Assign a group of affinity scheduling rules
84
88
# #
85
89
affinity : {}
You can’t perform that action at this time.
0 commit comments