简体   繁体   中英

nginx Ingress and cloud provider load balancer like (ALB) really a load balancer in Kubernetes world?

nginx Ingress is mainly used for path based routing and sub domain based routing to route the request to particular pod and Cloud provider load balancer will provide external ip address to get the requests from external world and which in turn points to ingress.

In Kube.netes, Service components acts as a real load balancer by balancing the load to multiple pods in the cluster. This is my understanding, Am I correct?

Yes you are correct, so the flow goes like

You create the LB on any Cloud provider which gives you endpoint to the inte.net you can use it with ingress controller. (You can further use the SSL/TLS certificate also with LB to run HTTPS)

If you are using the Nginx ingress controller or any other controller depending on that it will handle or manage the Ingress resource in the cluster.

Once ingress rule decide service to forward traffic, K8s internal service load balance the traffic across running PODs for specific deployment based on rule.

internet > Loadbalancer > ingress > ingress controller checks > service > Loadbalance traffic across avilable POD of that specific service

Default load balancing will be round robbin.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM