Load Balancing between PODS

6/3/2019

Is there a way to do active and passive load balancing between 2 PODs of a micro-service. Say I have 2 instance(PODs) running of Micro-service, which is exposed using a K8s service object. Is there a way to configure the load balancing such a way that one pod will always get the request and when that pod is down , the other pod will start receiving the request?

I have ingress object also on top of that service.

-- P.Das
kubernetes
kubernetes-service

1 Answer

6/3/2019

This is what the Kubernetes Service object does, which you already mentioned you are using. Make sure you set up a readiness probe in your pod template so that the system can tell when your app is healthy.

-- coderanger
Source: StackOverflow