Kubernetes service running on localhost

1/29/2021

I have deployed pods running nginx using helm, but when I do minikube service service_name, I see my service running on localhost as shown below. enter image description here

I thought that you need to access the service via the cluster IP not localhost?

I tried to access it using the cluster ip with the port of the service, but it doesn't seem to work.

I also tried to run it again after stopping docker, but it seems that docker is required to start the kubernetes cluster.

I'm following this kubecon demo , in the demo she can access it using the cluster ip just fine.

-- allen
kubernetes

2 Answers

1/29/2021

This is achieved using minikube tunnel command executed in separate terminal. This creates a tunnel and adds route to ClusterIP range.

-- Vasili Angapov
Source: StackOverflow

1/29/2021

It seems that the problem is the cluster was created using default docker driver.

Here's the thread that I found the solution, enter link description here

Just needed to start minikube cluster using virtualbox as the driver.

-- allen
Source: StackOverflow