Skip to content

Instantly share code, notes, and snippets.

@agonzalezro
Created October 14, 2015 19:03
Show Gist options
  • Select an option

  • Save agonzalezro/2e921c2c0fa0fcc1e5ab to your computer and use it in GitHub Desktop.

Select an option

Save agonzalezro/2e921c2c0fa0fcc1e5ab to your computer and use it in GitHub Desktop.
Get all the nodes external IPs in a Kubernetes cluster
kubectl get nodes -o template --template='{{range.items}}{{range.status.addresses}}{{if eq .type "ExternalIP"}}{{.address}}{{end}}{{end}} {{end}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment