Report this

What is the reason for this report?

Kubernetes External Load Balancer Service

Posted on February 2, 2016

Hi, I’m building a container cluster using CoreOs and Kubernetes, and I’ve seend that in order to expose a Pod to the world you have to create a Service with Type: LoadBalancer. I was wondering how to achieve this with Floating IP. I can’t seem to find any documentation about it.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It seems like there’s no way to directly do it in the kubernetes side. Anyway, I guess you could accomplish it in the cloud provider side. For example, for Openstack, you can associate a floating IP to the VIP of the created Load balancer of the service. https://docs.openstack.org/magnum/ocata/dev/kubernetes-load-balancer.html

I have 3 master with etcd configured. Is there any basic template to use for confd to update haproxy dynamically with server and pod ports?

I note the addition of https://www.digitalocean.com/products/load-balancer/

So… the service is there when k8s wants to support it.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.