我尝试在带有Virtualbox的MacOS上运行minikube v0.22.1和kubectl v1.7.5。Minikube:kubectl连接被拒绝 - 您是否指定了正确的主机或端口?
$ minikube start
Starting local Kubernetes v1.7.5 cluster...
Starting VM...
Getting VM IP address...
Moving files into cluster...
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
Kubectl is now configured to use the cluster.
$ minikube version
minikube version: v0.22.1
$ minikube status
minikube: Running
cluster: Running
kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100
但是所有kubectl
命令失败,出现“拒绝连接 - 你指定正确的主机或端口?”
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5", GitCommit:"17d7182a7ccbb167074be7a87f0a68bd00d58d97", GitTreeState:"clean", BuildDate:"2017-08-31T19:32:26Z", GoVersion:"go1.9", Compiler:"gc", Platform:"darwin/amd64"}
The connection to the server 192.168.99.100:8443 was refused - did you specify the right host or port?
该解决方案提出here(sudo ifconfig vboxnet0 up
)没有帮助,该vboxnet0界面了。
任何意见或建议,高度赞赏。
我发布的Windows 10用户的答案。你能用你正在使用的操作系统更新你的问题吗? – Byebye