【发布时间】:2023-03-11 21:15:03
【问题描述】:
我正在尝试按照以下方式安装 minikube:
https://learnk8s.io/blog/installing-docker-and-kubernetes-on-windows
但出现错误The "minikube" cluster does not exist
我已经检查过了:
- Hyper-v 在 Windows 10 上启用
- choco 正在工作
- 启用 Kubernetes 的 Docker Desktop 已安装并正常工作
安装步骤后,当我使用minikube status 检查状态时,它显示:
E0305 15:06:44.703422 3524 status.go:98] The "minikube" cluster does not exist!
host: Nonexistent
kubelet: Nonexistent
apiserver: Nonexistent
kubeconfig: Nonexistent
在 Hyper-V 中没有名为 minikube 的虚拟机。
我试过了:
删除 Minikube
卸载并重新安装 minikube
重新启动后仍然出现同样的错误。在 Google 或 SO 中找不到类似的问题解决方案。
感谢任何帮助。
更新
我有管理员权限,powershell是以管理员身份打开的。
以下是minikube start --vm-driver=hyperv --v=7 --alsologtostderr的日志:
minikube : I0306 12:26:47.386494 17704 notify.go:125] Checking for updates...
At line:1 char:1
+ minikube start --vm-driver=hyperv --v=7 --alsologtostderr
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (I0306 12:26:47.... for updates...:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
W0306 12:27:08.486738 17704 notify.go:56] Error getting json from minikube version url: error with http GET for endpoint https://storage.googleapis.com/minikube/releases.json:
Get https://storage.googleapis.com/minikube/releases.json: dial tcp 216.58.203.112:443: 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.
I0306 12:27:08.516653 17704 start.go:249] hostinfo: {"hostname":"WKWIN1995806","uptime":175720,"bootTime":1583293108,"procs":284,"os":"windows","platform":"Microsoft Windows 10
Enterprise","platformFamily":"Standalone Workstation","platformVersion":"10.0.17134 Build
17134","kernelVersion":"","virtualizationSystem":"","virtualizationRole":"","hostid":"b9795f0e-13f8-4cd0-ab90-d083cb8d93de"}
W0306 12:27:08.516653 17704 start.go:257] gopshost.Virtualization returned error: not implemented yet
! minikube v1.7.3 on Microsoft Windows 10 Enterprise 10.0.17134 Build 17134
I0306 12:27:08.517658 17704 driver.go:211] Setting default libvirt URI to qemu:///system
坚持了几个小时,尝试了两次。
更新2
minikube start --vm-driver=hyperv --force 能够在 HyperV 中创建之前失败的 VM,之后出现错误。 minikube status 显示错误错误host driver ip status: getting IP: IP not found:
【问题讨论】:
-
让我们重新开始,但首先要确保您: 1. 执行
minikube delete后删除 .minikube 文件夹 2. 运行minikube start --vm-driver=hyperv --v=7 --alsologtostderr并向我们展示您获得的日志 3. 确保您拥有管理员权限特权。比,我们将能够更深入地挖掘。 -
@OhHiMark 添加了日志
-
您的系统上是否有活动的 VPN?
-
是的@OhHiMark,有一个VPN
标签: windows-10 hyper-v minikube