- Newest
- Most votes
- Most comments
Hello,
In order to find the NIC of a node which particular pod uses to communicate, you can use this command :
First, to get the pod IP : $ kubectl get pod <POD_NAME> Then, to list the NICs [1]: $ aws ec2 describe-network-interfaces --filters Name=addresses.private-ip-address,Values=<POD_IP> query ‘NetworkInterfaces[*].{ID:NetworkInterfaceId}’
You just need to replace <POD_NAME> with the name of your Pod and <POD_IP> with the IP address of your pod.
As for your query regarding finding pod to (pod/service/internet) route, run this troubleshooting pod that contains networking tools such as ‘traceroute’ which enables you to trace pod to pod communication route $ kubectl run tmp-shell-host --rm -it --image nicolaka/netshoot -- /bin/bash $ traceroute, tcptraceroute
[1] - https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-network-interfaces.html
Relevant content
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago