Minikube exposing all services and ports

137 Views Asked by At

I am using Helm with multiple charts, I have it up and running on the K8s cluster, but for local test, we want to use Minikube with a docker driver, and now I have an issue with accessing the application inside the Minikube network, how can I expose everything to the host? is it even possible?

I can expose the main app with port-forwarding but then all the redirections are not working.

this is all the services.

enter image description here

1

There are 1 best solutions below

2
Hemanth Kumar On

This is a known issue for minikube as it is only limited to Linux. Using minikube service with a tunnel the network is limited if using the Docker driver on Darwin, Windows, or WSL, and the Node IP is not reachable directly. Running a minikube on Linux with the Docker driver will result in no tunnel being created. Follow this tunneling into Minikube for accessing the application inside the Minikube network. The tunnel command exposes the external IP directly to any program running on the host operating system.

Refer to this medium blog by Mohit Sharma for more information.