我在我的笔记本电脑上获得了Kubernetes Minikube(4核,8 GB RAM)。我只是进行了基本的安装步骤(有miniKube和kubectl,使BIOS虚拟化)和我能够启动集群:带有VirtualBox的Windows上的Minikube:连接尝试失败
C:\Users\me>minikube start
Starting local Kubernetes cluster...
Starting VM...
SSH-ing files into VM...
Setting up certs...
Starting cluster components...
Connecting to cluster...
Setting up kubeconfig...
Kubectl is now configured to use the cluster.
然而,当我尝试与集群互动,我百达得到同样的错误,样本:
C:\Users\me>kubectl get pods --context=minikube
Unable to connect to the server: dial tcp 192.168.99.100:8443: connectex: A connection attempt failed because the connected party
did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
我执行minikube ip
和我平的结果IP和我得到回应。此外,我试图提供更多的内存(3Gb与标准2Gb),而且没有任何变化。
我在这里做错了什么?
谢谢!
我有完全相同的问题。由于我在Windows 10上,我也尝试过使用Hyper-V,但问题仍然存在。 – cdelmas
我不明白这个问题,但现在确实有效。简而言之,我只需重启minikube vm('''minikube stop''',然后''minikube start''')。 不知道发生了什么... – cdelmas
未到达服务器,连接失败。验证您的防火墙规则不会阻止服务器。 – Marilu