node-exporter in this yaml :
prometheus-operator/contrib/kube-prometheus/manifests/node-exporter/node-exporter-daemonset.yaml
volumes and mountpoints doesn't content :
"/:/rootfs:ro"
not like node-exporter:
https://github.com/prometheus/node_exporter
why not add the to it?
there are a few things around the node-exporter daemonset we have currently that can be improved, if this change works in your setup, feel free to contribute it :slightly_smiling_face:
Since kubernetes not support mount propagation, /:/rootfs:ro will cause some mount/unmount issues on host machine(for example if you use networked block device like ceph rbd/aws ebs etc), see https://github.com/prometheus/node_exporter/pull/660
after this pr https://github.com/kubernetes/kubernetes/pull/46444 merged, I think we can consider run node_exporter with /:/rootfs:ro,rslave.
Mount propagation is now on by default in Kubernetes 1.10, so I鈥檓 closing this.
Most helpful comment
Since kubernetes not support mount propagation,
/:/rootfs:rowill cause some mount/unmount issues on host machine(for example if you use networked block device like ceph rbd/aws ebs etc), see https://github.com/prometheus/node_exporter/pull/660after this pr https://github.com/kubernetes/kubernetes/pull/46444 merged, I think we can consider run node_exporter with
/:/rootfs:ro,rslave.