Access minikube service hosted on VM from host

12/12/2020

I'm working on a VM virtual Box, running Ubuntu. I have created on it a Kubernetes service, using Minikube, exposing an hello-world app.

NAME        TYPE       CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
hello-world    NodePort   10.99.59.211    <none>        8080:32453/TCP   2h

minikube ip
192.168.49.2

Now, the app is reacheable inside vm through the browser at

http://192.168.49.2:32453

but if i try to open the hello world app from host browser, it is un-reacheable.

i already set up the port farwarding in virtualbox, and it works fine if, for example, i run the apache server in vm, but not for my app. see port forwarding

the link

http://localhost:9090

is not reacheable from host machine so i can't reache my app running on vm.

can you help? thank you so much.

-- Francesco Torchia
kubernetes
minikube
virtualbox

0 Answers