Created
November 7, 2018 13:01
-
-
Save zommarin/20329b16aa3a0b4df1d54136ab6f6510 to your computer and use it in GitHub Desktop.
kubectl snippets
This file contains 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
# Get list of external IPs for all nodes in the 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