-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Kernel with CONFIG_IKHEADERS for BPF tools on Kubernetes #8556
Comments
/cc @priyawadhwa |
@alban - building the headers into the kernel is likely the nicer of the two options, but I could go either way. I'd be happy to approve a PR that does this: https://minikube.sigs.k8s.io/docs/contrib/building/iso/#adding-kernel-modules |
@alban we have a doc on running BCC tools as a container in minikube, maybe this would work for you until the headers get added to the kernel https://minikube.sigs.k8s.io/docs/tutorials/ebpf_tools_in_minikube/ |
This issue should be reopened: Minikube See the revert commit: #8649 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Additionally, I would like to have CONFIG_DEBUG_INFO_BTF (available from Linux 5.2) to benefit from BPF programs compiled with CO-RE. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
So this won't be able to be supported until we update the kernel version of the ISO to v5, which we currently cannot for several reasons. I'm freezing this so that it won't get closed while we wait for that. |
I came across this issue while experimenting with eBPF and minikube and it looks like current Minikube has the required support as now on the 5.10 kernel per above mentioned #12707 and this issue may be closable (bar the doc updated mentioned below) eBPF tools can be shown to work in a number of ways by eBPF tools that support the options requested Note the blog post Running eBPF Tools in Minikube would need to be updated.
Version info
Updated example of minikube and execsnoopThis means that if a container has mounted /sys/kernel/kheaders.tar.xz and is privileged with the right tools installed (xz, bcc) you can run execsnoop. Note needs xz here to read headers
Kernel config of minikube isoSee also
zgrep -E '(CONFIG_DEBUG_INFO_BTF|CONFIG_IKHEADERS|BPF)' /proc/config.gz
|
I would like the Minikube kernel to be compiled with CONFIG_IKHEADERS.
This is missing from linux_defconfig.
BCC tools need to have access to kernel headers. It can be done either by installing
linux-headers
packages or by having a kernel compiled withCONFIG_IKHEADERS
so that enough information can be retrieved via/sys/kernel/kheaders.tar.xz
.BCC tools are used in Inspektor Gadget, a collection of tools for developers of Kubernetes applications. I would like Inspektor Gadget to support Minikube.
/cc @mauriciovasquezbernal
The text was updated successfully, but these errors were encountered: