获取 pod hostIP kubectl get pods <pods-name> --no-headers=true -o custom-columns=:status.hostIP 根据 hostIP 获取 pod name kubectl get pods -o custom-columns=:metadata.name --no-headers=true --field-selector status.podIP=<pod-ip-address-goes-here>