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