<p>I'm trying to deploy a bunch of microsrvices under a single ingress contoller (in a k8s cluster).
For some of these apps the ingress requires a rewrite annotation in the ingress definition like this: <code>nginx.ingress.kubernetes.io/rewrite-target: /$2</code>
and some of them do not use any rewrite annotation and are defined via a specific path.</p>

<p>Both apps are using the same host but different paths:</p>

<p>app1 uses <code>- path: /foo/?(.*)</code></p>

<p>app2 uses <code>- path: /bar</code></p>

<p>I can get these working seperately but not together. (with rewrite annotation the first set of apps are redirected correctly and without annotation only the 
second set of apps work)</p>

<p>I also tried creating different ingress definitions for different set of apps with required nginx configuration which also did not help. </p>

<p>Any thoughts please?</p>

SBG
<p>I was able to get away with this by creating another ingress in a different namespace.</p>
