ExternalIP for service is always pending

3/5/2019

I have local multi machine vagrant kubernetes cluster which is created using code here.

I have created kubernetes replication controller created using kubia-rc.yaml.

    vagrant@k8s-head:~$ kubectl get rc
    NAME    DESIRED   CURRENT   READY   AGE
    kubia   3         3         3       26h

    vagrant@k8s-head:~$ kubectl get pods
    NAME                READY   STATUS      RESTARTS   AGE
    kubia-l28dv         1/1     Running     1          26h
    kubia-vd7jf         1/1     Running     1          26h
    kubia-wsv42         1/1     Running     1          26h

Then I have created the service of type LoadBalancer using this yaml here.

The output of the command is success and it displays successfully created service

    vagrant@k8s-head:~$ kubectl  get svc
    NAME                 TYPE           CLUSTER-IP       EXTERNAL-IP   PORT(S)        AGE
    kubia                ClusterIP      10.103.199.175   <none>        80/TCP         26h
    kubia-loadbalancer   LoadBalancer   10.107.166.22    <pending>     80:30865/TCP   25h

The output of kubia-loadbalancer is always <pending> and don't know what could the issue.

What is wrong with my setup?

-- Rajkumar Natarajan
kubernetes
kubernetes-service

0 Answers