码迷,mamicode.com
首页 > Web开发 > 详细

CentOS7.5Kubernets(k8s)1.12.2之Helm部署Dashboard(三)

时间:2018-10-31 17:10:17      阅读:544      评论:0      收藏:0      [点我收藏+]

标签:kubectl   com   clu   clust   多少   port   xxx   ash   oar   

Helm部署Dashboard
dashboard所需镜像(v1.10.0)地址:
链接:https://pan.baidu.com/s/1vkdYNGjQD0hD_Q0_I_2t3A
提取码:7i7k
1、#helm install --name dashboard --namespace=kube-system stable/kubernetes-dashboard
2、#kubectl edit svc dashboard-kubernetes-dashboard -n kube-system (将ClusterIP改为NodePort,提供外网访问地址)
3、#kubectl create serviceaccount dashboard-admin -n kube-system (利用token访问K8s的dashboard)
4、#kubectl create clusterrolebinding dashboard-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin
5、#kubectl get secret -n kube-system
6、#kubectl describe secret dashboard-admin-token-xxxxx -n kube-system (查询Doshboard的token是多少)
备注:用火狐浏览器进行访问

CentOS7.5Kubernets(k8s)1.12.2之Helm部署Dashboard(三)

标签:kubectl   com   clu   clust   多少   port   xxx   ash   oar   

原文地址:http://blog.51cto.com/12749569/2311095

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!