Skip to content

Instantly share code, notes, and snippets.

@zommarin
Created November 7, 2018 13:01
Show Gist options
  • Save zommarin/20329b16aa3a0b4df1d54136ab6f6510 to your computer and use it in GitHub Desktop.
Save zommarin/20329b16aa3a0b4df1d54136ab6f6510 to your computer and use it in GitHub Desktop.
kubectl snippets
# 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