创build了kops kubernetes集群
安装仪表板使用:
kubectl create -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/kubernetes-dashboard/v1.6.3.yaml
版本
kubectl version
得到:
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.0", GitCommit:"6e937839ac04a38cac63e6a7a306c5d035fe7b0a", GitTreeState:"clean", BuildDate:"2017-09-28T22:57:57Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.4", GitCommit:"793658f2d7ca7f064d2bdf606519f9fe1229c381", GitTreeState:"clean", BuildDate:"2017-08-17T08:30:51Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
浏览至:
https://api.k.mydomain.com/ui
得到:
错误:“格式错误的HTTP响应”\ x15 \ x03 \ x01 \ x00 \ x02 \ x02“'尝试连接:' http ://100.xxx:8443/'
我应该如何访问仪表板?
新版本的仪表板无法正确使用短/uipath。 您需要使用ugly /api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/来代替。
检查官方网站的详细信息。 https://github.com/kubernetes/dashboard