Created
June 25, 2020 02:02
-
-
Save ishikawa/3f340f1274b3eb384156355665559ed7 to your computer and use it in GitHub Desktop.
Login with the shell into the first matching pod returned from kubectl get pod
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 pod | awk '{ print $1 }' | grep '^gateway-' | head -1 | xargs -o -I {} kubectl exec -it {} -- /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment