Use host devices and fuse mounts in system containers on Kubernetes #964
Unanswered
mueckinger
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My use-case is to enable fuse mounts in a system container on Kubernetes. This requires to "hand-over"
/dev/fuseto the system container. In Kubernetes there is no Docker-like--deviceflag to handle devices. Also hostPath-volume-mounting the folder/dev/fusedid not work in my case. I stumbled upon generic-device-plugin. With this plugin, which is a DaemonSet running on your node, and the following podSpec I was able to mount sshfs and run AppImages in system containers on a Ubuntu-based Kubernetes node:It seems that fuse mount requires CAP_SYS_ADMIN privileges. And in case of an ubuntu node AppArmor prohibits fuse mount operations from the container as well.
I wonder if there is an easier way to accomplish this? If not I'll leave it here for documentation.
Beta Was this translation helpful? Give feedback.
All reactions