I'm trying to run a multi node kubernetes cluster on three linux servers using kubeadm and following this tutorial:
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/high-availability/
It mentions a need for a load balancer for kube-apiserver
Can I use nginx for that? is there a tutorial for doing this the right way?
CodePudding user response:
You can use nginx but that become yet another single point of failure? Here's a good idea using keepalived/haproxy which the loadbalancer layer itself is HA enabled.
CodePudding user response:
Can I use nginx for that? is there a tutorial for doing this the right way?
You can use the Nginx but to in gohm'c
answer, HA proxy has hard beat option to check the health of worker node and VMs once installed while with Nginx it's hard to check the health of nodes and forward traffic. here considering you will be using the free Nginx not paid one Nginx plus.
HA proxy benefit
- More flexibility on health checks and failover conditions
- Exportable metrics