github / glb-director

GitHub Load Balancer Director and supporting tooling.
Other
2.38k stars 229 forks source link

How to install in Kubernetes? #70

Open pavelnikolov opened 5 years ago

pavelnikolov commented 5 years ago

I wonder if it is possible to run the glb-director in Kubernetes? I haven't found any documentation about this. Any documentation/tips would be highly appreciated.

theojulienne commented 5 years ago

:wave: @pavelnikolov In terms of running glb-director in Kubernetes, it's theoretically possible but would require some care around getting the direct access to the NIC. Generally Kubernetes is aiming to allow fast rescheduling of processes while glb-director is designed to run for long periods and keep connections stable as nodes come and go. Similarly, glb-director relies on being able to announce to the network devices via BGP or similar.

At GitHub, we run GLB itself outside Kubernetes, including both glb-director as the L4 load balancer and haproxy as the L7 load balancer layer, and then haproxy has backends to connect to Kubernetes node ports to access applications within the cluster.