老师:我dash-board 不能转发的原因找到了:
应该使用1.10版本的dashboard yaml file, 地址如下:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml
使用Window 的同学 在用浏览器打开dashboard的时候, 必须使用Firefox 浏览器安装SwitchyOmega 插件, 然后用Firefox 打开地址:
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
Google 的Chrome 浏览器这里不行!!!
***
如果同学需要安装2.0 以上 版本的dashboard yaml:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml
浏览器打开的地址是:
反正我没试过2.0版的yaml, 有兴趣的同学可以试试,看看行不行。
参考: https://stackoverflow.com/questions/57719573/services-kubernetes-dashboard-not-found-when-access-kubernetes-ui