- 最新
- 最多得票
- 最多評論
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
相關內容
- 已提問 7 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 5 個月前