talos icon indicating copy to clipboard operation
talos copied to clipboard

Allow configuring additional host-wide mountpoints

Open flokli opened this issue 4 years ago • 4 comments

Feature Request

I'd like to use virtio-fs to mount a filesystem tree (not a virtio-blk block device) into a Talos worker node.

The worker node itself is a VM, with all the necessary hypervisor plumbing done, so a mount -t virtiofs mytagname /where-to-mount theoretically would succeed.

After some quick digging in Slack, @smira already confirmed the kernel has the necessary features (CONFIG_VIRTIO_FS=y etc) enabled: https://github.com/siderolabs/pkgs/blob/master/kernel/build/config-amd64#L4827 - so the only thing missing would be a way to specify that mountpoint in the system config.

This could use a similar structure as KubeletConfig.extraMounts, but needs to apply not only for the kubelet mount namespace (maybe restricted to some "safe" destination paths?)

Reason for this: I intend to expose some big filesystem available on the hypervisor with hostPath, or slicing subdirectories with local-path-provisioner

flokli avatar Apr 08 '22 19:04 flokli

I would like to add that this future is crucial for running eBPF programs relying on Linux kernel tracepoints, like kubeshark, due to the need to mount tracefs on /sys/kernel/tracing or debugfs on /sys/kernel/debug.

2b avatar Dec 28 '23 17:12 2b

Just adding my $0.02. I'm evaluating several eBPF apps for security monitoring. One of the things they require is access to either tracefs or debugfs. In Talos 1.7.0, I do see a /sys/kernel/tracing folder, but its not mounted.

kenlasko avatar Apr 30 '24 13:04 kenlasko

+1, This is highly requested feature from our users and in the eBPF community in general.

noamApps avatar May 26 '24 10:05 noamApps

+1 as the use of virtio-fs is gaining a lot of attention lately as it gives access to host paths without carving out block devices. Till this is supported in talos config is there a way to run a final script doing the mount in talos linux?

gspiliotis avatar Aug 27 '24 19:08 gspiliotis