Skip to content

Instantly share code, notes, and snippets.

@pgilad pgilad/get-token.fish
Last active Jun 8, 2019

Embed
What would you like to do?
Get k8s dashboard token for dashboard
#!/usr/bin/env fish
kubectl -n kube-system describe secrets (kubectl -n kube-system get secrets | awk '/clusterrole-aggregation-controller/ {print $1}') | awk '/token:/ {print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.