天天看點

Kubernetes Dashboard 使用

1.部署 Kubernetes Dashboard

$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml
      

2.啟動 Kubernetes Dashboard

$ kubectl proxy
      

3.通路 Kubernetes Dashboard

http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
      

4.擷取登陸 Dashboard 需要的令牌

$ kubectl -n kube-system describe secret default| awk '$1=="token:"{print $2}'