【问题标题】:The "minikube" cluster does not exist“minikube”集群不存在
【发布时间】: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


【解决方案1】:

根据您提供的信息和您已经尝试过的修复,我认为需要考虑两件事:

  1. HyperV 驱动程序可能已超时而未给出错误消息。要解决此问题,您可以将--force 添加到minikube start 命令。基本上它看起来像这样:minikube start --vm-driver=hyperv --force

  2. 您的 VPN 可能会导致一些互联网和/或本地连接问题。如果可能,请尝试禁用您的 VPN。

如果有帮助,请告诉我。

【讨论】:

  • 这绝对有帮助,它至少在 hyperV 中创建了 VM,但后来失败了,我已经更新了问题
  • @PranavSingh 我同意了。同时,请尝试以下两个建议:herehere
  • 这解决了 minikube 创建问题,尽管我遇到了一些其他问题并正在探索它。我会接受这个作为这个问题的答案并为此创建另一个问题
猜你喜欢
  • 2022-01-18
  • 1970-01-01
  • 1970-01-01
  • 2019-03-14
  • 2021-11-05
  • 1970-01-01
  • 2021-10-05
  • 2018-10-29
  • 2018-04-20
相关资源
最近更新 更多