Skip to content

Instantly share code, notes, and snippets.

@renatoassis01
Last active February 7, 2019 17:17
Show Gist options
  • Save renatoassis01/35b59412a55ec4a3ae01f8310685bac5 to your computer and use it in GitHub Desktop.
Save renatoassis01/35b59412a55ec4a3ae01f8310685bac5 to your computer and use it in GitHub Desktop.
Get the token kubernetes
TOKEN=$(kubectl describe secret -n kube-system $(kubectl get secrets -n kube-system | grep default | cut -f1 -d ' ') | grep -E '^token' | cut -f2 -d':' | tr -d '\t' | tr -d " ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment