Skip to content

Instantly share code, notes, and snippets.

@antweiss
Created February 14, 2024 17:35
Show Gist options
  • Save antweiss/938f254c1aaeacfb76e8e6a819f4eae1 to your computer and use it in GitHub Desktop.
Save antweiss/938f254c1aaeacfb76e8e6a819f4eae1 to your computer and use it in GitHub Desktop.
Parse kubernetes nodes external IPs with yq
kubectl get node -oyaml | yq '.items[].status.addresses[] | select(.type=="ExternalIP") | .address')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment