From 41e3f7d03fef494634cff3e205eeea7af6dd464b Mon Sep 17 00:00:00 2001 From: paulfantom <pawel@krupa.net.pl> Date: Fri, 18 Dec 2020 14:17:07 +0100 Subject: [PATCH] node-exporter: do not mount /proc as it is covered by hostPID --- jsonnet/kube-prometheus/node-exporter/node-exporter.libsonnet | 3 --- 1 file changed, 3 deletions(-) diff --git a/jsonnet/kube-prometheus/node-exporter/node-exporter.libsonnet b/jsonnet/kube-prometheus/node-exporter/node-exporter.libsonnet index 44cc2edd..07df2400 100644 --- a/jsonnet/kube-prometheus/node-exporter/node-exporter.libsonnet +++ b/jsonnet/kube-prometheus/node-exporter/node-exporter.libsonnet @@ -66,7 +66,6 @@ image: $._config.imageRepos.nodeExporter + ':' + $._config.versions.nodeExporter, args: [ '--web.listen-address=' + std.join(':', [$._config.nodeExporter.listenAddress, std.toString($._config.nodeExporter.port)]), - '--path.procfs=/host/proc', '--path.sysfs=/host/sys', '--path.rootfs=/host/root', '--no-collector.wifi', @@ -74,7 +73,6 @@ '--collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)', ], volumeMounts: [ - { name: 'proc', mountPath: '/host/proc', mountPropagation: 'HostToContainer', readOnly: true }, { name: 'sys', mountPath: '/host/sys', mountPropagation: 'HostToContainer', readOnly: true }, { name: 'root', mountPath: '/host/root', mountPropagation: 'HostToContainer', readOnly: true }, ], @@ -135,7 +133,6 @@ }], containers: [nodeExporter, proxy], volumes: [ - { name: 'proc', hostPath: { path: '/proc' } }, { name: 'sys', hostPath: { path: '/sys' } }, { name: 'root', hostPath: { path: '/' } }, ], -- GitLab