溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

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

發(fā)布時(shí)間:2020-06-28 11:45:36 來源:網(wǎng)絡(luò) 閱讀:2430 作者:lingfengxiaoshi 欄目:云計(jì)算

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,提供外網(wǎng)訪問地址)
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是多少)
備注:用火狐瀏覽器進(jìn)行訪問

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI