kubernetes1.16 K8S部署dashboard控制面板

获取dashboard.yaml文件

[root@master-1 ~]# kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta6/aio/deploy/recommended.yaml
[root@master-1 ~]# kubectl create serviceaccount dashboard-admin -n kubernetes-dashboard
[root@master-1 ~]# kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccoount=kubernetes-dashboard:dashboard-admin
[root@master-1 ~]# kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kubernetes-dashboard:dashboard-admin
## 获取Tonken
[root@master-1 ~]# kubectl describe secrets -n kubernetes-dashboard $(kubectl -n kubernetes-dashboard get secret |awk '/dashboard-admin/{print $1}')

kubernetes1.16 K8S部署dashboard控制面板_第1张图片
kubernetes1.16 K8S部署dashboard控制面板_第2张图片

你可能感兴趣的:(容器)