Manel Andreu Pérez:
Hi! I’m new on kubernetes and I’m having a problem with the minikube service [service] --url
, when I run it, the terminal shows me this message:
PS C:\Users\Me kubectl create deployment hello-minikube --image=<http://k8s.gcr.io/echoserver:latest|k8s.gcr.io/echoserver:latest>
deployment.apps/hello-minikube created
PS C:\Users\Me kubectl expose deployment hello-minikube --type=NodePort --port=8080
service/hello-minikube exposed
PS C:\Users\Me minikube service hello-minikube --url
<http://127.0.0.1:64635>
❗ Because you are using the Docker driver on windows, the terminal needs to be open to run it.
When I paste the url to my web browser, I get an ERR_CONNECTION_RESET
error.
Here is the output of command minikube service list
:
|-------------|----------------|--------------|---------------------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|-------------|----------------|--------------|---------------------------|
| default | hello-minikube | 8080 | <http://192.168.49.2:30781> |
| default | kubernetes | No node port |
| kube-system | kube-dns | No node port |
|-------------|----------------|--------------|---------------------------|
I ran ps | grep docker
in order to list the Docker’s processes that I have running now (if may it helps). This is the output:
175 14 20712 15960 0,81 12000 1 com.docker.backend
1877 30 32016 27292 16,77 12772 1 com.docker.backend
113 10 16676 11168 0,06 13624 1 com.docker.dev-envs
271 17 21516 6688 0,34 13584 1 com.docker.extensions
183 14 22024 15144 0,81 14080 1 com.docker.proxy
471 45 49336 10984 1,80 4148 0 com.docker.service
114 10 23860 12352 0,27 17492 1 com.docker.vpnkit
109 10 22096 11232 0,17 10392 1 docker
I’m running minikube on Windows 10 Pro.
Thanks for your help!
PD: After research about this on Google, I saw several people that were having this problem, so I tried to do what they did to solve it, but it didn’t worked. Here are things I did and didn’t worked:
- Run
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
, reset my computer, andminikube config set driver hyperv
. After that runminikube delete
andminikube start
. It didn’t worked because it seems to be that minikube can’t use that hyper-visor (I don’t know why). I ranminikube config set driver docker
in order to restore the default value of the driver. - Run
kubectl port-forward service/hello-minikube 7080:8080
. The terminal shouts me this error:error: unable to forward port because pod is not running. Current status=Pending
. - Run
minikube config set memory 6273
(the max value of my docker installation), andminikube config cpus 4
. But the containers were not created, so I setminikube config set memory 2048
andminikube set cpus 2
in order to set the default values and it worked again (but I still having my problem).