In the previous article, we used kuberspay to install a production-level Kubernetes cluster without pits . After the installation is complete, if you need to install kubernetes-dashboard
it, please do the following:
- Download description file
curl https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml -o kubernetes-dashboard.yaml
- will be
gcr.io/google_containers/kubernetes-dashboard-amd64
modified toregistry.cn-hangzhou.aliyuncs.com/google_images/kubernetes-dashboard-amd64
- implement:
kubectl create -f kubernetes-dashboard.yaml
- View execution results
wangyunfeideMBP:kubespray wangyunfei$ kubectl get pod NAME READY STATUS RESTARTS AGE kube-apiserver-node1 1/1 Running 0 3d kube-controller-manager-node1 1/1 Running 0 3d kube-dns-69997447-783dz 3/3 Running 0 3d kube-proxy-node1 1/1 Running 0 3d kube-proxy-node2 1/1 Running 0 3d kube-proxy-node3 1/1 Running 0 3d kube-scheduler-node1 1/1 Running 0 3d kubedns-autoscaler-2506230242-1vcgk 1/1 Running 0 3d kubernetes-dashboard-27199923-qqgrq 1/1 Running 0 1m nginx-proxy-node2 1/1 Running 0 3d nginx-proxy-node3 1/1 Running 0 3d
- view page, execute
kubectl proxy
, visithttp://127.0.0.1:8001/ui
Source address: http://www.wisely.top/2017/07/04/kubespray-kubernetes-dashboard/