I'm just getting started with kuberneted on Windows 10. I downloaded the bits from here.
While attempting to start minikube from powershell:
PS C:\WINDOWS\system32> minikube start --vm-driver=hyperv
I'm encountering the error:
Starting local Kubernetes v1.8.0 cluster...
Starting VM...
E1202 06:53:29.869106 2368 start.go:150] Error starting host: Error starting stopped host: exit status 1.
While the documentation does not mention any prerequisites to run minikube, is there any setting on Windows 10 that needs to change to make it run?
While I do not completely understand what happend, I chanced upon this article.
I got minikube running using the following steps:
PS C:\WINDOWS\system32> minikube delete
PS C:\WINDOWS\system32> kubectl config use-context minikube
PS C:\WINDOWS\system32> minikube start --vm-driver=hyperv
Let say your minicube
is installed on X:
drive and your profile is on Y:
drive. Then, to start the minikube you have to run the following two commands at the console:
Y:
X:\path-to-minicube\minikube.exe start
So, first command should position you on the profile drive (as minikube stores its files there and then tries to access them with no any mention of the drive, just starting with /
). And second one is just running the EXE with correct "current drive".
P.S. And in case your minikube still complains it can't start stopped service, just run minikube delete
(because this software is stateful) and try that two commands again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With