minikube: Minikube tunnel hangs on Ubuntu 20 in Windows 10

Steps to reproduce the issue:

  1. minikube start
  2. kubectl apply -f manifests/storage-deployment.yaml
  3. kubectl apply -f manifests/storage-service.yaml
  4. minikube tunnel

Full output of minikube logs command: out.txt

Full output of failed command: Observed behavior: The minikube tunnel command provides no output and appears to be frozen. (However, using htop I can see that the tunnel command is using cpu and memory. Also, if I do minikube stop in another terminal, the tunnel command starts outputting error messages.) Expected behavior: Output of service IP addresses etc. like the output in this example.

Note that the Ubuntu 20.04 is running in Windows 10 (WSL2).

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 28 (7 by maintainers)

Most upvoted comments

Until the fix is shipped, you can also use kubectl port-forward service/<service-name> <local port>:<node port> (see https://minikube.sigs.k8s.io/docs/start/ #4). This worked for me on Windows 10 with WSL2 and Docker driver.

Hi @johnnybigert, thanks for reporting your issue with minikube!

There’s a large discussion about running minikube on WSL2 on this issue #7879.

There are multiple comments discussing the tunnel command, I’d recommend reading through them and seeing if any of them are applicable to you and maybe solve your issue, thanks!

Until the fix is shipped, you can also use kubectl port-forward service/<service-name> <local port>:<node port> (see https://minikube.sigs.k8s.io/docs/start/ #4). This worked for me on Windows 10 with WSL2 and Docker driver.

looks like because of this ingress is also not working. It is also hanging.