coroot / helm-charts

Coroot Helm charts
Apache License 2.0
13 stars 15 forks source link

fix mount crio sock #14

Closed anngdinh closed 6 days ago

anngdinh commented 7 months ago

Node agent need mount crio sock

def commented 7 months ago

It's not necessary to mount this because the agent can access the host filesystem

anngdinh commented 7 months ago

I got this error if not mount

image

def commented 7 months ago

Please show the beginning of the log

anngdinh commented 7 months ago

image

def commented 7 months ago

As you can see in the log, the agent tried to access the cri-o socket through: /proc/1/root/var/run/crio/crio.sock but encountered the no such file or directory error. This issue may arise if /var/run/crio/crio.sock or /var/run/crio is a symlink. Could you please check this?

anngdinh commented 7 months ago

No. It's not a symlink, it's a sock file. But i don't understand why node agent can read the file if I don't mount it.

def commented 7 months ago

The agent runs in the host PID namespace and has access to the proc filesystem. It can reach the host mount namespace through /proc/1/root/...

anngdinh commented 7 months ago

I see /proc/1/root -> /. I don't really catch it. image

def commented 7 months ago

To understand this, please read the section explaining /proc/pid/root in this documentation