<p>Is it possible to do a dynamic routing with a nginx ingress controller? By dynamic I mean based on the url I need to strip and fetch a value from the url and route based on that value. Let me know how if it’s possible. If it’s not possible with nginx controller , let me know any other way in which this is possible. Appreciate any help.</p>

<p>Ingress controllers are based on <code>Ingress</code> objects. Kubernetes objects definitions are static by nature (so we could version control them).</p>
<p>From what I gathered in the comments, when a user requests <code>domain.com/foo</code> they will be redirected to their instance of your app ? You will need a source to get the updated info.</p>
<p>I could see 2 ways of doing that:</p>
<ul>
<li>Edit the ingress object manually or programmatically (using helm or some other templating software)</li>
<li>Make a dedicated app using a persistent database and trigger redirections from there: <code>domain.com/*</code> -&gt; <code>redirect app</code> -&gt; `user app. This way you can control your users list as you want.</li>
</ul>
<p>It depends if the end user will stay on <code>domain.com/user</code> or if they get redirected to another unique domain. I would need more info to discuss that.</p>
