Search code examples
kuberneteskubectlflannel

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


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?


Solution

  • 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.