我在本地 Windows 10 机器上使用 Microk8s,但无法获取 pod 或使用大部分 kubectl 命令。
在安装microk8s时,multipass选择了VitrualBox进行VM虚拟化。
我收到以下错误
C:\Users\owner>microk8s kubectl get pods
Unable to connect to the server: dial tcp 10.0.2.15:16443: 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.
VirtualBox 6.1 版 确保多通道列表显示 VM 处于运行状态。
有一个先前版本的 VitrualBox 和 minikube - 我现在已经卸载并单独安装了 VirtualBox。还清理了 %USER_HOME%/.kube 目录和 %USER_HOME%/AppData/local/minikube 和 %USER_HOME%/AppData/local/VirtualBox 文件夹。