Kubernetes: LoadBalancer keeps pending even - in intro video it works

1/20/2018

Update: Ok I am not alone: https://github.com/docker/for-mac/issues/2445

Following this, he gets an External-ip:

I got the YAML files from GitHub.

wordpress         LoadBalancer   10.108.161.250   <pending>     80:30806/TCP

Why are my LoadBalancer just pending when his(in the video) is not?

And please note that he do has a LoadBalencer that expose an external ip for the service.

-- Chris G.
docker-for-mac
kubernetes

3 Answers

2/24/2018

Docker for Mac makes the LoadBalancers available at http://localhost:{port} automagically.

-- Vojtech Vitek
Source: StackOverflow

1/20/2018

The LoadBalancer services require support from the underlying infrastructure. They work automatically if you deploy them in supported providers such as AWS or GKE.

They doesn't work if you deploy them locally on your Mac or with minikube

Details here: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#external-load-balancer-providers

-- whites11
Source: StackOverflow

3/2/2018

This has been fixed in 18.03.0-ce-rc1-mac54:

From release notes: - Kubernetes Load balanced services are no longer marked as `Pending`.

-- Vojtech Vitek
Source: StackOverflow