Skip to content

Instantly share code, notes, and snippets.

@shcallaway
Created July 29, 2019 19:56
Show Gist options
  • Save shcallaway/896accd6bcce8b348156c00cc82a9c61 to your computer and use it in GitHub Desktop.
Save shcallaway/896accd6bcce8b348156c00cc82a9c61 to your computer and use it in GitHub Desktop.
List Kubernetes pod IP addresses
kubectl get po -o json | jq '.items[] | select(.metadata.name | test("my-pod")) | .status.podIP'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment