Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

service external ip pending kubernetes

Why service external IP address is in a pending state?

Should I enable any load balancer for my kubernetes master?

I'm using kubernetes on digital ocean cloud.

enter image description here

like image 305
AATHITH RAJENDRAN Avatar asked Dec 12 '18 04:12

AATHITH RAJENDRAN


People also ask

Why is my Kubernetes pod pending?

My pod stays pending If a Pod is stuck in Pending it means that it can not be scheduled onto a node. Generally this is because there are insufficient resources of one type or another that prevent scheduling.

How do I access Kubernetes service externally?

Ways to connect You have several options for connecting to nodes, pods and services from outside the cluster: Access services through public IPs. Use a service with type NodePort or LoadBalancer to make the service reachable outside the cluster. See the services and kubectl expose documentation.


1 Answers

To provision Load Balancer or Persistent Volumes in Cloud, Kubernetes uses Cloud controller Manager. Follow this guide to know more: Kubernetes Cloud Controller Manager

It might happen that at the time of setting up your cluster you did not specified any Cloud controller to use that is why it is getting in pending state.

After configuring a Cloud controller Manager you should be able to provision Load Balancer and see External IP.

Also this answer here might help: Kubernetes External Load Balancer Service on DigitalOcean

like image 102
Samrat Priyadarshi Avatar answered Sep 16 '22 18:09

Samrat Priyadarshi