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.
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 solution is to use minikube tunnel. This was not apparent for me following guide, docs, etc, up to the point of making the ticket.
minikubedoes not come with anything that can spin up a service type ofLoadBalancer.
And I guess even doing minikube addons enable ingress does not spin up that service, either (?)
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.