7 ms·
nginx-ingress-controller running on a NodePort service should work well enough here - just set DNS records to round-robin onto your machines. This will work on
by q3k 6y ago
nginx-ingress-controller running on a NodePort service should work well enough here - just set DNS records to round-robin onto your machines. This will work on any network topology, and already works on k8s.
If you want any better load balancing and/or failover, you'll have to either have something provided by your cloud provider (an LBaaS, and then tie that into Kubernetes via some controller), or have a network topology that can be exploited for this (shared L2 with a VIP or L3 with BGP, so that you can use something like MetalLB).
This is not a Kubernetes problem, but a networking problem.
- intricatedetail 6y agoThis requires fair bit of fiddling and never got it working properly. Kind of defeats the purpose of automated infrastructure.