Created
September 26, 2016 09:54
-
-
Save jaikoo/e16212445288cb3c6ae4134cb78ae824 to your computer and use it in GitHub Desktop.
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
Returns the internal DNS entries | |
-------------------------------- | |
nodes=$(kubectl --kubeconfig=deploy/kubeconfig get nodes -o jsonpath='{range.items[*].metadata}{.name} {end}'); echo $nodes | |
Returns the public IP addresses | |
------------------------ | |
nodes=$(kubectl --kubeconfig=deploy/kubeconfig get nodes -o jsonpath='{range .items[*].status.addresses[?(@.type=="ExternalIP")]}{.address} {end}'); echo $nodes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment