mirror of https://github.com/ceph/ceph-ansible.git
dashboard: allow collecting stats from the host
This commit makes podman bindmount `/:/rootfs:ro` so the container can collect data from the host. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2028775 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>subset-debug-master
parent
f288364c5c
commit
0f34cd16d8
|
@ -23,11 +23,13 @@ ExecStart=/usr/bin/{{ container_binary }} run --rm --name=node-exporter \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
--pids-limit={{ 0 if container_binary == 'podman' else -1 }} \
|
--pids-limit={{ 0 if container_binary == 'podman' else -1 }} \
|
||||||
--privileged \
|
--privileged \
|
||||||
-v /proc:/host/proc:ro -v /sys:/host/sys:ro \
|
--security-opt label=disable \
|
||||||
|
-v /:/rootfs:ro \
|
||||||
--net=host \
|
--net=host \
|
||||||
{{ node_exporter_container_image }} \
|
{{ node_exporter_container_image }} \
|
||||||
--path.procfs=/host/proc \
|
--path.procfs=/rootfs/proc \
|
||||||
--path.sysfs=/host/sys \
|
--path.sysfs=/rootfs/sys \
|
||||||
|
--path.rootfs=/rootfs \
|
||||||
--no-collector.timex \
|
--no-collector.timex \
|
||||||
--web.listen-address=:{{ node_exporter_port }}
|
--web.listen-address=:{{ node_exporter_port }}
|
||||||
{% if container_binary == 'podman' %}
|
{% if container_binary == 'podman' %}
|
||||||
|
|
Loading…
Reference in New Issue