packet capture for communication between 2 pods on K8 cluster

1k views Asked by At

I am testing K8 cluster setup and trying to understand the networking between 2 pods. The K8 is using the flannel as its CNI. The communication is happening correctly, but i would like to analyze a bit on the packet flow.

I tried to capture the packets on the flannel interface and the veth interfaces that is created but no luck.

I captured the packets on cni0 that is created by K8 but i am only able to see the application layer i.e either TCP 3 way handshake or the HTTP messages..

What is the procedure to capture the packet to view the overlay packets?

1

There are 1 answers

1
Sebastien Goasguen On

How about using wireshark and capturing on the "physical" interface of your machines. Every packet will go through there ultimately, so you should be able to see VXLAN packets on that interface.