Skip to content

Instantly share code, notes, and snippets.

@pgilad
Last active June 8, 2019 05:57
Show Gist options
  • Save pgilad/8b81779ce94d76e2a90b9bee73defd40 to your computer and use it in GitHub Desktop.
Save pgilad/8b81779ce94d76e2a90b9bee73defd40 to your computer and use it in GitHub Desktop.
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