Load pf-ring kernel module in init container (#1476)

* Load kernel module in init container

* Update docs

* Update formatting

* Add pre-stop hook to unload pf_ring module

* Enable hook only on kernel module enabled

* fix template

* Use sidecontainer to unload pf_ring

* Add requirements for tracer into structs

* fix values

* fix typo

---------

Co-authored-by: Alon Girmonsky <1990761+alongir@users.noreply.github.com>
This commit is contained in:
Volodymyr Stoiko
2024-01-13 01:49:39 +02:00
committed by GitHub
parent 7df35e04a8
commit aaeb3ca1eb
8 changed files with 89 additions and 216 deletions

View File

@@ -16,14 +16,6 @@ const (
func CreateDefaultConfig() ConfigStruct {
return ConfigStruct{
Tap: configStructs.TapConfig{
KernelModule: configStructs.KernelModuleConfig{
KernelMappings: []configStructs.KernelMapping{
{
ContainerImage: "kubeshark/pf-ring-module:${KERNEL_FULL_VERSION}",
Regexp: "^.+$",
},
},
},
NodeSelectorTerms: []v1.NodeSelectorTerm{
{
MatchExpressions: []v1.NodeSelectorRequirement{