Skip to content

Why are Kubelet extra mounts for Longhorn needed? #9674

Answered by smira
M4t7e asked this question in Q&A
Discussion options

You must be logged in to vote

My answer is only about hostPath mounts (mounts of host directories into running Kubernetes pods and containers).

When a container is started with a hostPath mount, the actual mount operation is performed by the containerd (via CRI plugin), which run on the host in the host namespace (including mount namespace). So in terms of actual mount operation, kubelet is not involved into that.

In Talos Linux, kubelet itself runs in a container in a different mount namespace, so by default it doesn't see mounted user disks (volumes), neither it sees full contents of /var directory. For most basic volume mount, this is fine, as kubelet doesn't need to inspect the mount source or do anything about it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@M4t7e
Comment options

@smira
Comment options

smira Nov 8, 2024
Maintainer

Answer selected by M4t7e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants