Skip to content

Instantly share code, notes, and snippets.

@beratdogan
Created August 19, 2020 07:37
Show Gist options
  • Save beratdogan/924b428fda750902a258448d1fd907c9 to your computer and use it in GitHub Desktop.
Save beratdogan/924b428fda750902a258448d1fd907c9 to your computer and use it in GitHub Desktop.
List all pods with their cluster local IPs.
kubectl get pods -o=jsonpath='{range .items[*]}{@.metadata.name}{"\t"}{@.status.podIP}{"\n"}{end}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment