kubeshark / tracer

The kernel tracer that attaches eBPF probes to containers for capturing TLS traffic
GNU General Public License v3.0
22 stars 6 forks source link

Attach tc programs using netlink API #105

Closed iluxa closed 1 month ago

iluxa commented 1 month ago

resolves https://github.com/kubeshark/worker/issues/263

Using new eBPF programs attach API doesn't break cilium network anymore.

Tested on EKS with eksctl on clusters version 1.29 and 1.31. In case of 1.29 ebpf capture doesn't work because of https://github.com/kubeshark/tracer/issues/108, but after the fix cluster itself continues to work without issues

Test scenario:

metadata: name: region: version:

iam: withOIDC: true

addonsConfig: disableDefaultAddons: true addons:

metadata: name: region:

managedNodeGroups:

* create nodegroup:

eksctl create nodegroup -f ./nodegroup.yaml


* install kubeshark and test (without `-disable-ebpf` option in both sniffer and tracer)

links:
https://isovalent.com/blog/post/eks-byocni-cilium/
https://medium.com/@amitmavgupta/cilium-installing-cilium-in-eks-with-no-kube-proxy-86f54a56c360