Created
December 10, 2018 13:55
-
-
Save karthik101/13bd01795c210e46b45b2d58e34d5eeb to your computer and use it in GitHub Desktop.
Get 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==\"InternalIP\"\)].address} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment