Created
December 28, 2017 18:10
-
-
Save isaaguilar/2e9cde80a2424b7416546fe1803b76d5 to your computer and use it in GitHub Desktop.
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
| NAMESPACE=$1 | |
| POD=`kubectl --namespace $NAMESPACE get pods|grep worker|cut -f 1 -d ' '` | |
| INTERNAL_IP=`kubectl --namespace $NAMESPACE get pod $POD -o json| jq -r '.status.hostIP'` | |
| kubectl describe nodes|grep -A 1 $INTERNAL_IP|grep ExternalIP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment