我正在尝试按照以下步骤安装minikube:
https://learnk8s.io/blog/installing-docker-and-kubernetes-on-windows
但是出现了错误"minikube" 集群不存在
我已经检查过:
- 在 Windows 10 上启用了 Hyper-v
- 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 中创建虚拟机,而之前失败并出现错误。 minikube status
显示错误 Error host driver ip status: getting IP: IP not found
: