"minikube" 集群不存在
The "minikube" cluster does not exist
我正在尝试按照以下步骤安装 minikube:
https://learnk8s.io/blog/installing-docker-and-kubernetes-on-windows
但出现错误 The "minikube" cluster does not exist
我检查过:
- Hyper-v 在 windows 10
上启用
- choco 正在工作
- Docker 启用了 Kubernetes 的桌面已安装并正常工作
安装步骤后,当我使用 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 中找到类似的问题解决方案。
感谢任何帮助。
更新
我有管理员权限,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
显示错误 Error host driver ip status: getting IP: IP not found
:
根据您提供的信息和您已经尝试过的修复,我认为有两点需要考虑:
HyperV 驱动程序可能已超时而没有给出错误消息。要解决此问题,您可以将 --force
添加到 minikube start
命令。基本上它看起来像这样:minikube start --vm-driver=hyperv --force
.
您的 VPN 可能会导致某些互联网 and/or 本地连接问题。如果可能,请尝试禁用您的 VPN。
如果有帮助,请告诉我。
powershell 中的以下命令作为为我工作的管理员。
minikube start --force
我正在尝试按照以下步骤安装 minikube:
https://learnk8s.io/blog/installing-docker-and-kubernetes-on-windows
但出现错误 The "minikube" cluster does not exist
我检查过:
- Hyper-v 在 windows 10 上启用
- choco 正在工作
- Docker 启用了 Kubernetes 的桌面已安装并正常工作
安装步骤后,当我使用 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 中找到类似的问题解决方案。
感谢任何帮助。
更新
我有管理员权限,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
显示错误 Error host driver ip status: getting IP: IP not found
:
根据您提供的信息和您已经尝试过的修复,我认为有两点需要考虑:
HyperV 驱动程序可能已超时而没有给出错误消息。要解决此问题,您可以将
--force
添加到minikube start
命令。基本上它看起来像这样:minikube start --vm-driver=hyperv --force
.您的 VPN 可能会导致某些互联网 and/or 本地连接问题。如果可能,请尝试禁用您的 VPN。
如果有帮助,请告诉我。
powershell 中的以下命令作为为我工作的管理员。
minikube start --force