Home > OS >  For Kubernetes cluster, shouldn't we have two load balancers instead of one?
For Kubernetes cluster, shouldn't we have two load balancers instead of one?

Time:09-12

In al the tutorials about Kubernetes cluster I have read I didn't see that they mention to 2 load balancers, but only one for the ingress pods.

However, in a proper production environment, should's we have 2 different load balancers?

  1. to balance between the master nodes for requests to the ApiServer.
  2. to balance between the Ingress podes to control the external traffic.

CodePudding user response:

  1. to balance between the master nodes for requests to the ApiServer.

For all production environments its advised to have load balancer for API Server. This is the first step as part of K8S HA mode creation. More details are in k8s documentation

  1. to balance between the Ingress podes to control the external traffic.

You are correct for this also it’s definitely required to handle external traffic. All the ingress services are created of LoadBalancer Type in their implementations.

  • Related