2020-06-18 07:49:13 +00:00
|
|
|
#!/usr/bin/env bash
|
2019-11-16 15:22:10 +00:00
|
|
|
|
|
|
|
start_dashboard() {
|
2020-04-13 23:57:28 +00:00
|
|
|
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml
|
2019-11-16 15:22:10 +00:00
|
|
|
kubectl apply -f dashboard.yml
|
|
|
|
|
|
|
|
echo "Bearer token for UI user."
|
|
|
|
kubectl -n kubernetes-dashboard describe secret $(kubectl -n kubernetes-dashboard get secret | grep admin-user | awk '{print $1}')
|
|
|
|
}
|
|
|
|
|
|
|
|
start_dashboard
|