- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
Contenus pertinents
- demandé il y a un an
- demandé il y a 3 mois
- demandé il y a 2 jours
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 5 mois