Last active
May 9, 2018 04:48
-
-
Save dlinsley/1803cc8af484f985ce8cd71019474887 to your computer and use it in GitHub Desktop.
Get Kubernetes Node IPs as JSON array with kubectl and jq
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
kubectl get nodes -o json | jq '.items[] | .status .addresses[] | select(.type=="ExternalIP") | .["address"]' | jq . -s -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment