“ minikube”集群不存在

问题描述 投票:0回答:1

我正在尝试按照以下步骤安装minikube:

https://learnk8s.io/blog/installing-docker-and-kubernetes-on-windows

但出现错误The "minikube" cluster does not exist

我已经检查过:

  • 在Windows 10上启用了Hyper-v
  • choco正在工作
  • 已启用Kubernetes的Docker桌面已安装并正在运行

安装步骤之后,当我用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的VM。

我尝试过:

  • 正在删除Minikube

  • 卸载并重新安装minikube

重新启动后仍然出现相同的错误。无法在Google或SO中找到类似的问题解决方案。

感谢您的任何帮助。


UPDATE


我具有管理员权限,以管理员身份打开了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

在这里停留了几个小时,尝试了两次。

Update2


minikube start --vm-driver=hyperv --force能够在HyperV中创建虚拟机,该虚拟机在此之后无法更早地出错。 minikube status显示错误错误host driver ip status: getting IP: IP not foundenter image description here

windows-10 hyper-v minikube
1个回答
1
投票

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

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

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

请让我知道是否有帮助。

© www.soinside.com 2019 - 2024. All rights reserved.