Kubernetes's service still in pending status. How does it work and how to fix this issue?

9/26/2018

I have Kubernetes Cluster v1.10 over centos 7

when I deploy service type LoadBalancer it still in pending status

Do I need to know how LoadBalancer type work?

-- AhmedMItman
flannel
kubectl
kubernetes

2 Answers

9/26/2018

I suggest you read the docs on the Kubernetes Service abstraction.

Depending on the Cloud or your infrastructure provider this could be several things

Generally, this means that the kube-controller manager can't create the load balancer in your cloud provider and the kubelet on your nodes can't add the routes to the service.

And, this could be because you don't have the right credentials, you don't have right cloud provider configured on Kubernetes, or you are running a completely bare-metal server, or you are running something like minikube, or simply you don't have connectivity to your cloud provider.

-- Rico
Source: StackOverflow

9/26/2018

The way it works is that Kubernetes will need a load-balancer to configure ;-)
Since you don't have one, it cannot configure the load-balancer for you, and the status remains as pending.

-- samhain1138
Source: StackOverflow