-
-
Save demofly/7d92b3670004e865dc9d111ea335687d to your computer and use it in GitHub Desktop.
Get external IP address of Kubernetes nodes
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
#!/bin/bash | |
kubectl get nodes --selector=kubernetes.io/role!=master -o jsonpath={.items[*].status.addresses[?\(@.type==\"ExternalIP\"\)].address} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment