当我成功运行命令“minikube start”时,之后我运行“minikube dashborad”命令,但出现错误
"Exiting due to SVC_URL_TIMEOUT: http:///api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/ is not accessible: checkURL: Get "http:///api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/": http: no Host in request URL"
你能帮我解决这个问题吗?非常感谢!
也许需要使用
--port
标签来设置特定端口,我运行命令 minikube dash board --port 0
来使用随机端口;然后我成功打开仪表板!
在我的情况下,仪表板图像的下载非常慢(大约 12MB 后等待几秒钟)。 所以我进入了 minikube docker
minikube ssh
手动拉取镜像:
docker pull docker.io/kubernetesui/dashboard:v2.7.0@sha256:2e500d29e9d5f4a086b908eb8dfe7ecac57d2ab09d65b24f588b1d449841ef93
之后仪表板就可以工作了。
我从日志中获取的应该提取的图像的名称。
kubectl describe pod --namespace kubernetes-dashboard <name of the pod>
输出:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning Failed 13m (x16 over 88m) kubelet Failed to pull image "docker.io/kubernetesui/dashboard:v2.7.0@sha256:2e500d29e9d5f4a086b908eb8dfe7ecac57d2ab09d65b24f588b1d449841ef93": rpc error: code = Canceled desc = context canceled
Normal BackOff 9m52s (x268 over 88m) kubelet Back-off pulling image "docker.io/kubernetesui/dashboard:v2.7.0@sha256:2e500d29e9d5f4a086b908eb8dfe7ecac57d2ab09d65b24f588b1d449841ef93"