mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-23 08:05:38 +00:00
15 lines
356 B
Bash
Executable File
15 lines
356 B
Bash
Executable File
#!/bin/sh
|
|
|
|
kubectl -n kube-system get secret "$(
|
|
kubectl -n kube-system get secret |
|
|
grep dashboard-admin |
|
|
awk '{print $1}'
|
|
)" -o json |
|
|
jq -j --raw-output '.data.token' |
|
|
base64 --decode |
|
|
pbcopy
|
|
|
|
open http://localhost:8001/api/v1/namespaces/default/services/https:kubernetes-dashboard:https/proxy/#!/login
|
|
|
|
kubectl proxy
|