Load balancing between 2 applications

3/9/2020

I am deploying a 3rd party product as container in kubernets, ans as per their recommendation there should be 2 pods, 2 services, 2 ingress urls (only the license will be different). Say Deployment 1 exposes a https url and deployment 2 also exposes another https url. The functionality is same.

Now I want to have an external application load balancer to route the traffic between these 2 different urls in different deployment, how can we achieve this?

-- sam
kubernetes
kubernetes-ingress
load-balancing

1 Answer

3/9/2020

It sounds like you need to use an ingress controller, which routes traffic to the right service depending on conditions like the hostname matching an ingress.

There's many ways of doing this, but you might want to check out the AWS ALB Ingress Controller to start with, assuming you meant the AWS application load balancer.

-- halkyon
Source: StackOverflow