Kubernetes with Linux WSL on Windows 11

1/25/2022

I have Windows 11 with WSL2 and Ubuntu installed, but from Windows I can't access all the IP generated into the Linux WSL.

Case: in Linux WSL I deployed with Kubernetes Minikube (virtualized with KVM2)a simple cluster with 2 nodes, MongoDb, and Mongo Express. When I launch minikube dashboard, it launches it on http://127.0.0.1:XXXXX and from Windows Chrome works.

But when I launch minikube service mongodb-express-service to expose the address it launches it on http://192.168.39.253:30000 and looks ok, but I can't reach it from Windows. If I ping it doesn't respond.

I tried a lot of solutions (firewall, different ips, ...a lot!!) that I found but nothing seems like working...

Is it possible or WSL is "limited"?

Does someone experience it?

Does someone have found a solution?

This is not regarding specifically Kubernetes but my question is more general if I would like to deploy something else.

Thanks!

-- Marco Disco
kubernetes
linux
mongodb
windows-subsystem-for-linux

0 Answers