Clarify Ingress load balancer

后端 未结 3 1460
被撕碎了的回忆
被撕碎了的回忆 2020-12-31 22:53

I\'m not sure how load balancing works with Ingress.
If I understand correctly, what happens is actually something like this:

I fail to see how the loa

3条回答
  •  庸人自扰
    2020-12-31 23:30

    I got curious and thought: why would I need an Ingress for load balancing on layer 7 if the only thing it does is forward the traffic to a Service that implements the load balancing on layer 4?

    Most Ingress controller implementations I looked up, talk to the Kubernetes API server to keep track of all Pods associated with a Service. Instead of forwarding traffic to the Service, they skip the intermediary and directly forward to the Pods. Since an ingress controller operates on layer 7, it enables a more application-oriented load balancing.

提交回复
热议问题