3

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?

Rico
  • 58,485
  • 12
  • 111
  • 141
AhmedMItman
  • 247
  • 1
  • 3
  • 13

2 Answers2

4

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
  • 58,485
  • 12
  • 111
  • 141
1

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
  • 1,035
  • 8
  • 7
  • it can handle by using ingress-controller OR assign public address for loadbalance how can i assign list of public IPs , i am using OVH cloud provider not google – AhmedMItman Sep 26 '18 at 15:02