Created
February 4, 2019 13:25
-
-
Save benjlevesque/ac774a489a6530c4dc478fbe040cc23e to your computer and use it in GitHub Desktop.
Run Kubedashboard in 1 command
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
#! /bin/zsh | |
echo ${$(kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep eks-admin | awk '{print $1}') | grep token:)#'token:'} | xargs | xclip -selection clipboard && echo 'Token copied to clipboard' && xdg-open 'http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login' && kubectl proxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment