allen
allen

Reputation: 319

Kubernetes service running on localhost

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.

Upvotes: 1

Views: 1009

Answers (2)

allen
allen

Reputation: 319

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.

Upvotes: 1

Vasilii Angapov
Vasilii Angapov

Reputation: 9042

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

Upvotes: 1

Related Questions