Skip to content

Instantly share code, notes, and snippets.

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