Created
October 14, 2015 19:03
-
-
Save agonzalezro/2e921c2c0fa0fcc1e5ab to your computer and use it in GitHub Desktop.
Get all the nodes external IPs in a Kubernetes cluster
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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