Skip to content

Instantly share code, notes, and snippets.

@duboisf
Last active July 5, 2024 20:33
Show Gist options
  • Save duboisf/373d947745c1c0c460a3de8368a62762 to your computer and use it in GitHub Desktop.
Save duboisf/373d947745c1c0c460a3de8368a62762 to your computer and use it in GitHub Desktop.
Using tcpdump with kubectl and wireshark
mkfifo /tmp/pcap.fifo
# Note: DO NOT use the -it option with exec!
kubectl exec deploy/some-pod -c istio-proxy -- bash -c "sudo tcpdump -s0 -U -n -i eth0 -w - " > /tmp/pcap.fifo
wireshark -k -i /tmp/pcap.fifo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment