<p>I would like to setup my microservices eco system in kubernetes. I have one environment let's say TEST in which I have deployed app1, app2 ,app3 and DB. Database is shared among the service. Assume all my services are deployed in a namespace called "stable". Now I have another namespace called "dev" in which I deployed only app1.<br>
Now, I want to access the app2 and DB in "stable" namespace from app1 in "dev"  namespace, if both are not deployed in "dev". i.e when I try to access any service from dev namespace, it should try to connect in the same namespace and if not exists it should go to 'stable'. </p>

<p>I want to achieve cross namespace communication with condition that if not exists in current namespace redirect to the next namespace. Is it possible?</p>

Thiyagu
<p>You'd need a loadbalancer service with all the upstreams defined for such a failover. Can be achieved with Istio if you want this centrally configured.</p>
