I use this script to check for any throttling issues for EKS or Kubernetes running on AWS. Feel free to customize it depending on your needs.
- Capture packets on ENIs associated with EC2 and exlcude "eth*" and "lo" interfaces. The list of interfaces can be obtained by running the command:
ls -1 /sys/class/net
- If you'd like to capture packets on all interfaces, replace "[[ $i = eni* ]] && tcpdump_func $i &" with "tcpdump_func $i &"
- Iterates through all the ENIs associated with the worker nodes and captures packets for 60 seconds
- I used this as a reference to come up with this script