kubectl get po -o json | jq '.items[] | select(.status.podIP == "10.0.217.76") | .metadata.name'
Created
July 26, 2019 00:37
-
-
Save shcallaway/88c22ca83a031accd7f380d1e9d0a6c3 to your computer and use it in GitHub Desktop.
Find a Kubernetes pod by its IP address
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment