Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4832

Register Backends from Kubernetes

$
0
0

Hi,

I have been using haproxy extensively and first wanted to express my thanks for this great piece of software.

My HAproxy is already the load balancer for several “traditional“ webservices in our network and doing a great job. Now I wanted to hook it up to our kuberneters to directly handle traffic for services running there. While I find some documentation about haproxy running inside Kubernetes as Ingress Controller or setting up HAProxy outside my use-case is even simpler.

If a new service as “LoadBalancer“ is created, it will receive an “outside“ IP address, which I register at my router via BGP. Additional, via ExternalDNS I also register an “outside“ DNS name for the service. This enables me to access the service running inside Kubernetes from anywhere in the network via IP or said DNS name.

The final piece I would need is to register this internal DNS name as new server(-template) with the corresponding backend and mapfile configuration. Doing all this manually works without issues, but hoping to find some automation for this.

I could not find much in my direction, as all those terms bring up examples not fitting for my case. Would greatly appreciate, if someone has some pointers for me.

Thanks
Martin

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4832

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>