Skip to content

Instantly share code, notes, and snippets.

@Haidy777
Created April 22, 2018 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Haidy777/2b8b9ec35224be04207c9d6cc36feda5 to your computer and use it in GitHub Desktop.
Save Haidy777/2b8b9ec35224be04207c9d6cc36feda5 to your computer and use it in GitHub Desktop.
$ kubectl --namespace kube-system describe secret $(kubectl --namespace kube-system get secret | grep admin-user | awk '{print $1}') | grep -E '^token' | cut -f2 -d':' | tr -d ' \t'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment