-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is k3s using /var/lib/rancher/k3s/agent/kubelet #840
Comments
Actually, it gets more complex that that. Apparently the kubelet itself is aware that its path isn't Unless you know to mount Any reason we aren't using |
It was just nicer this way, everything was in one directory. But then CSI came along and messed up everything. We might just have to move to /var/lib/kubelet. I thought a symlink would fix it but you've proven it doesn't. What if on start we create a bind mount? |
We'll just move to /var/lib/kubelet. |
I actually thought about working around it, if you could have a mount reference something like this: volumes:
- name: kubelet-dir
hostPath: kubelet-path-spec or similar where this would be resolved at runtime by the kubelet to its definition of the Kubelet path (normally |
Can't wait to see this! |
I'm sure you will, but please call-this out as a possible breaking change in release notes when this change ships. We have needed to work around this by hard-coding the |
With v0.10.0-rc2, we have k3s use the default /var/lib/kubelet directory. |
Thanks. I am going to test it out right away. |
And done. CSI works beautifully. Thanks for the fix! |
Describe the bug
Various system level utilities that depend on the location of
/var/lib/kubelet/
(I came across it when working on CSI) fail, because k3s installs it at/var/lib/rancher/k3s/agent/kubelet/
. In this case, it wasplugins/
,plugins_registry/
andpods/
, but I can see others.To Reproduce
ls -l /var/lib/kubelet/
Expected behavior
Standard kubelet directory to exist
Additional context
Even a simple
ln -s /var/lib/rancher/k3s/agent/kubelet /var/lib/kubelet
would do it.Oh yes... I love k3s.
The text was updated successfully, but these errors were encountered: