-
Notifications
You must be signed in to change notification settings - Fork 37
canonical-kubernetes localhost: kubelet cannot check disk space #48
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
Comments
So we do modify the lxd profile to allow certain kernel modules in to the containers. Do we just need the zfs modules loaded? I can easily add those in there |
Can I do anything to help you debug this issue ? |
You can try updating the profile:
And adding the necessary kernel modules to
Let me know how that goes and if it works I can update the profile accordingly |
Heres a list of default modules loaded when installing zfsutils-linux:
|
It seems those profile instructions were already there:
|
Not the zfs modules listed though, can you add those? |
Oh, my bad. Here it is:
I've removed the /dev/zfs device I manually added and rebooted, here's syslog:
If I mount the host /dev/zfs (I'm not sure it's even a good idea ?):
I'm still getting the same errors from kubelet, let me know if it helps ! |
@stgraber do you know what it takes to get zfs loaded inside the container? |
ZFS doesn't support any kind of namespacing, so you absolutely DO NOT want it to work from inside a container. If /dev/zfs is available with write access inside the container and you tweak things so that the tools work, what you'll see is the HOST view of ZFS. All the mountpoints listed will be the host mount points and any volume creation/removal will affect the host, not the container. I think a better question here is why does kubelet need the zfs commands to check disk space? |
I've been looking into it and arrived at the google/cadvisor project that kubelet use to gather stats: https://github.com/google/cadvisor/blob/ba33b5a25bfd1a4e627093ef080872cad627e028/fs/fs.go#L322 I will go and raise an issue with them. In the meantime I guess I could use lxd with another storage backend. Thanks you very much for your help 👍 |
@adrien-f Thanks for the report, let us know if we can be of further help |
Greetings,
Conjured Canonical Kubernetes on localhost Ubuntu 16.04.2 with default settings.
I'm here again with another issue, on the works I've noticed that kubelet cannot check disk space, complaining about the zfs binary not found. This is not really critical but that means that heapster is not recording nodes/pods stats.
After installing zfsutils-linux manually on the workers, here's the errors I'm getting:
I'm noticing
/dev/zfs
is not existing on the workers, so I tried adding it:But back in the container, with strace:
I guess it may have something to do with unprivileged containers and the host zfs ? Let me know if you need more informations, thanks again !
The text was updated successfully, but these errors were encountered: