<p>we have a system that is having 2 endpoint based on geo-location. e.g (east_url, west_url).
One of our application need to load balance between those 2 urls. In the consumer application, created 2 deployment with the same image but different environment variables such as "url=east_url", "url=west_url".</p>

<p>after the deployment, i have following running pod, each of them will have label: "app=consumer-app" and "region=east" or "region=west"</p>

<ul>
<li>consumer-east-pod-1</li>
<li>consumer-east-pod-2</li>
<li>consumer-west-pod-1</li>
<li>consumer-west-pod-2</li>
</ul>

<p>when i create a clusterIP service with selector: app=consumer-app, somehow it only picks up one replicaSet. I am just curious if this is actually possible in kubernates to allow Service backed up by different deployments?</p>

<p>Another way of doing this i can think of is to create 2 services, and have ingress controller to loadbalance it, is this possible? we are using Kong as the ingress controller. I am looking for something like openshift which can have "alternativeBackends" to serve the Route. <a href="https://docs.openshift.com/container-platform/4.1/applications/deployments/route-based-deployment-strategies.html" rel="nofollow noreferrer">https://docs.openshift.com/container-platform/4.1/applications/deployments/route-based-deployment-strategies.html</a></p>

user2501711
<p>I was missing a label for the east replicaSets, after i add the app:consumerAPP, it works fine now.
Thanks</p>
