Skip to content

Instantly share code, notes, and snippets.

@benjlevesque
Created February 4, 2019 13:25
Show Gist options
  • Save benjlevesque/ac774a489a6530c4dc478fbe040cc23e to your computer and use it in GitHub Desktop.
Save benjlevesque/ac774a489a6530c4dc478fbe040cc23e to your computer and use it in GitHub Desktop.
Run Kubedashboard in 1 command
#! /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