Dashboard部署

Dashboard部署

Dashboard所需要的部署文件位于下载文件解压后的kubernetes/cluster/addons/dashboard目录下

如果不能翻墙,则将dashboard-controller.yaml中的image: gcr.io/google_containers/kubernetes-dashboard-amd64:v1.4.0修改为shenshouer/kubernetes-dashboard-amd64:v1.4.0

dashboard-controller.yamldashboard-service.yaml两个文件放置于master上的dashboard文件夹内,然后执行:

cd ./dashboard
kubectl create -f ./

# 检查
/vagrant/dashboard# kubectl --namespace kube-system get po -o wide
NAME                                READY     STATUS    RESTARTS   AGE       IP             NODE
kube-dns-v20-9oplg                  3/3       Running   0          15h       192.168.31.3   172.19.8.103
kubernetes-dashboard-v1.4.0-xslrc   1/1       Running   0          15h       192.168.44.2   172.19.8.102

/vagrant/dashboard# kubectl --namespace kube-system get svc
NAME                   CLUSTER-IP     EXTERNAL-IP   PORT(S)         AGE
kube-dns               10.100.0.10    <none>        53/UDP,53/TCP   15h
kubernetes-dashboard   10.100.0.224   <none>        80/TCP          15h

说明服务启动正常, 获取集群信息:

/vagrant/dashboard# kubectl cluster-info
Kubernetes master is running at http://localhost:8080
KubeDNS is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/kube-dns
kubernetes-dashboard is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

浏览器打开http://[Master主机IP]:8080/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard显示如下:

这里写图片描述

发布了112 篇原创文章 · 获赞 11 · 访问量 45万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章