Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Ingress vs LoadBalancer

Sumit Rawal answered on June 18, 2023 Popularity 6/10 Helpfulness 1/10

Contents


More Related Answers

  • ingress-updated.yaml
  • Getting Started with Ingress
  • Why Use Ingress Objects?#

  • Ingress vs LoadBalancer

    0

    Ingress vs. LoadBalancer

    It’s common to be confused about when to use an Ingress instead of a LoadBalancer, so let’s try to clarify that.

    First of all, an Ingress is not a service type. It will act just as a smart router sending traffic to services based on the rules we define, while a LoadBalancer will actually provision an entirely new load balancer for each service we have.

    But couldn’t we achieve the same thing an ingress does with several LoadBalancer services?

    Ingress vs. LoadBalancer

    In some cases, we can, but there are a few advantages in using an Ingress.

    For each LoadBalancer service we have, a new load balancer needs to be created. If we have 50 services running in our cluster, that means we will need 50 load balancers, which can get quite expensive. An Ingress allows us to achieve the same thing with a single load balancer!

    Another thing that’s very useful with ingresses is that we can set up our rules in a way that requests to different paths are sent to different services. For example, if our users access example.com/foo, we may want to send these requests to the foo service and requests to example.com/bar should go to the bar service. This is trivial to implement with an Ingress, but it would be a lot harder if foo and bar each had their own load balancer.

    Personally, a LoadBalancer is the easiest way to expose our services, while an Ingress is the most powerful. 

    Popularity 6/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on Jun 18 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.