Minikube: LoadBalancer Service has pending IP address

Created on 18 Apr 2019  路  7Comments  路  Source: kubernetes/minikube

Hi!

I have read https://github.com/kubernetes/minikube/issues/2834 but that does not solve my issue:

When I run kubectl expose deployment test-deployment-nginx --type=LoadBalancer --name=nginx-example

and then look at the services with kubectl get svc then:

NAME            TYPE           CLUSTER-IP    EXTERNAL-IP   PORT(S)        AGE
kubernetes      ClusterIP      10.96.0.1     <none>        443/TCP        23h
nginx-example   LoadBalancer   10.96.11.32   <pending>     80:31378/TCP   3h10m

You can see it does not get an external IP.

For this reason the minikube service nginx-example does not work. I get a connection error.

aretunnel cservice

Most helpful comment

The solution is to use minikube tunnel. This was not apparent for me following guide, docs, etc, up to the point of making the ticket.

All 7 comments

minikube does not come with anything that can spin up a service type of LoadBalancer. You can install something like metallb to enable this. https://metallb.universe.tf/tutorial/minikube/

@dvdmuckle : minikube tunnel does provide a LoadBalancer, but for some reason it's not working here

@Industrial - What happens when you run minikube tunnel?

Also, do you mind providing the full output of minikube service nginx-example - you mentioned it returns a connection error.

@balopat - Mind chiming in here? Is the normal state for a service until the tunnel is started?

The solution is to use minikube tunnel. This was not apparent for me following guide, docs, etc, up to the point of making the ticket.

minikube does not come with anything that can spin up a service type of LoadBalancer.

And I guess even doing minikube addons enable ingress does not spin up that service, either (?)

Was this page helpful?
0 / 5 - 0 ratings