Home > Back-end >  How to find all the outgoing network traffic from a pod in k8s
How to find all the outgoing network traffic from a pod in k8s

Time:05-26

Is there any command or anything to find the all outgoing traffic from a pod.

CodePudding user response:

If you want to capture a pod's traffic network you can use a service mesh like Istio or Linkerd

I worked with Istio and you can have metrics for all traffic within a cluster , ingress and egress traffic

CodePudding user response:

https://github.com/eldadru/ksniff - Kubectl plugin to ease sniffing on kubernetes pods using tcpdump and wireshark

Ksniff is shipped as a kubectl plugin that allows using tcpdump and Wireshark to capture traffic on a specific pod within a cluster. Ksniff uses kubectl to upload a tcpdump binary (packet sniffer) to the target container, and redirects the output to the Wireshark instance running in your machine.

https://kubesandclouds.com/index.php/2021/01/20/ksniff/

  • Related