I am trying to access a simple minikube cluster from the browser, but I keep getting the following:
❗ Because you are using a Docker driver on windows, the terminal needs to be open to run it.
I've created an external service for the cluster with the port number of 30384, and I'm running minikube in a docker container.
I'm follwing "Hello Minikube" example to create my deployment.
Step1: I created the deployment:
kubectl create deployment hello-node --image=k8s.gcr.io/echoserver:1.4
Step2: I created the external service:
kubectl expose deployment hello-node --type=LoadBalancer --port=8080
Step3: I ran the service, and that;s where I stuffed up
"minikube service hello-node
The full return message:
❗ Executing "docker container inspect minikube --format={{.State.Status}}" took an unusually long time: 2.3796077s
💡 Restarting the docker service may improve performance.
🏃 Starting tunnel for service hello-node.
🎉 Opening service default/hello-node in default browser...
❗ Because you are using a Docker driver on windows, the terminal needs to be open to run it.
I tried to run the service to make it accessible from the browser, however, I wasn't able to.
I got the same issue resolved it by changing minikube base driver to hyperv from docker.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
Your pc will restart after that you can say
minikube config set driver hyperv
Then minikube start
will start you with that driver.
This worked for me.