<p>Infra - GKE
I have two version of service running on different namespace</p>
<pre><code> - web1 - namespaceA
 - web2 - namespaceB
</code></pre>
<p>Is it possible to have single gke ingress and use it to route traffic to both the services.</p>
<pre><code>/web1 --- goes to web1 - namespaceA
/web2 -- goes to web2  - namespaceb
</code></pre>

<h2>Solution A</h2>
<p>This is for nginx-ingress</p>
<p>ref: <a href="https://stackoverflow.com/a/59845018/3854890">https://stackoverflow.com/a/59845018/3854890</a></p>
<h2>Solution B</h2>
<p>GKE Ingress in namespace A-&gt; <code>Nginx</code> service in namespace A</p>
<p>with nginx.conf like:</p>
<pre><code>    location /web1 {
        proxy_pass web1.namespaceA
    }
    
    location /web2 {
        proxy_pass web2.namespaceB
    }
</code></pre>
