dotfiles/macos/bin/kube-dashboard

8 lines
320 B
Plaintext
Raw Normal View History

2020-08-06 03:16:39 +00:00
#!/bin/sh
2021-04-07 12:38:23 +00:00
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
2020-08-06 03:16:39 +00:00
2021-04-07 12:38:23 +00:00
open http://localhost:8001/api/v1/namespaces/default/services/https:kubernetes-dashboard:https/proxy/#!/login
2020-08-06 03:16:39 +00:00
kubectl proxy