skip to Main Content

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.

2

Answers


  1. Chosen as BEST ANSWER

    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.


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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search