Inspektor Gadget uses eBPF to obtain the insights it provides. The
different gadgets provided use different eBPF capabilities. The
capabilities available depend on the version of the kernel running in the
node, as well as whether or not the kernel has
The required BTF information for some well known kernel versions is generated with BTFGen and shipped within the gadget container image. If there are not shipped types for the running kernel then they are downloaded from BTFhub .
Required Kernel Versions
This section summarizes the kernel versions and features that are required to run the gadgets. This has been generated by testing different Ubuntu versions and their shipped kernels, hence it’s possible that some gadgets work in older kernels than the one mentioned here.
|Gadget||Tools Mode||Required Kernel||BTF Required|
|network policy advisor|