Created
February 14, 2024 17:35
-
-
Save antweiss/938f254c1aaeacfb76e8e6a819f4eae1 to your computer and use it in GitHub Desktop.
Parse kubernetes nodes external IPs with yq
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 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