Open nicksome168 opened 7 months ago
I found another repo that did a similar thing. They have very nice modularization. Some notable differences:
the author also wrote a medium on this https://medium.com/@isalapiyarisi/getting-started-on-kubernetes-observability-with-ebpf-88139eb13fb2
As for ICMP tracing, i looked around and couldn't find the exact code snippet that does what we want here. The closest one I found was this code that intercepts ICMP ping and sends back the pong. We should be able to repurpose it.
I don't know if ICMP is a high priority, we can definitely roll this out and get useful information without it, so it can be done later.
I am pushing back any work that involves BPF program such as adding ICMP packets logging and try to get a runnable proof-of-concept first that allows you to instrument pods on a machine to get observability in network traffic within the k8s cluster context.