kube-prometheus: fix root typo in node-exporter
Currently, we are mounting `/root` from the host as `/host/root`. Instead simply `/` from the host should be mounted. This fixes it Signed-off-by: Sergiusz Urbaniak <sergiusz.urbaniak@gmail.com>
This commit is contained in:
@@ -74,7 +74,7 @@ local k = import 'ksonnet/ksonnet.beta.3/k.libsonnet';
|
|||||||
local sysVolumeMount = containerVolumeMount.new(sysVolumeName, '/host/sys');
|
local sysVolumeMount = containerVolumeMount.new(sysVolumeName, '/host/sys');
|
||||||
|
|
||||||
local rootVolumeName = 'root';
|
local rootVolumeName = 'root';
|
||||||
local rootVolume = volume.fromHostPath(rootVolumeName, '/root');
|
local rootVolume = volume.fromHostPath(rootVolumeName, '/');
|
||||||
local rootVolumeMount = containerVolumeMount.new(rootVolumeName, '/host/root').
|
local rootVolumeMount = containerVolumeMount.new(rootVolumeName, '/host/root').
|
||||||
withMountPropagation('HostToContainer').
|
withMountPropagation('HostToContainer').
|
||||||
withReadOnly(true);
|
withReadOnly(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user