1,kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.3.0/aio/deploy/recommended.yaml

2,dashboard安装指南

GitHub - kubernetes/dashboard: General-purpose web UI for Kubernetes clustersGeneral-purpose web UI for Kubernetes clusters. Contribute to kubernetes/dashboard development by creating an account on GitHub.https://github.com/kubernetes/dashboard3, dashboard 配置

How to Install and Set Up Kubernetes Dashboard [Step by Step]Get a birds eye view of your entire Kubernetes environment by learning how to set up a Kubernetes Dashboard.https://adamtheautomator.com/kubernetes-dashboard/文中错误的地方更正如下:

kubectl create clusterrolebinding dashboard-admin -n kubernetes-dashboard  --clusterrole=cluster-admin  --serviceaccount=kubernetes-dashboard:dashboard

查看token:

kubectl describe secret kubernetes-dashboard-token-r6x6f -n kubernetes-dashboard

4,dashboard配置后才能通过浏览器访问

Logo

开源、云原生的融合云平台

更多推荐