Prometheus-operator: node-exporter could not export all mountpoints

Created on 17 Aug 2017  路  3Comments  路  Source: prometheus-operator/prometheus-operator

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?

Most helpful comment

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.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arun11299 picture arun11299  路  3Comments

ohmanandam picture ohmanandam  路  4Comments

lilic picture lilic  路  3Comments

r-moiseev picture r-moiseev  路  3Comments

xuchenhao001 picture xuchenhao001  路  3Comments