我在笔记本电脑上安装了 Kubernetes Minikube(4 核,8 GB RAM)。我刚刚执行了基本的安装步骤(获得了miniKube和kubectl,启用了 BIOS 虚拟化)并且我能够启动集群:
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
并 ping 结果 IP 并得到响应。我还尝试提供更多内存(3Gb 与标准 2Gb),但没有任何改变。
我在这里做错了吗?
谢谢!