<p>I try to adjust the template for generating routes within a single namespace.
So basically what openshift does, when I enter a route without settng the host via yaml is generate a route in the following way:</p>
<p><code>${name}-${namespace}.myapps.mycompany.com</code></p>
<p>I would prefer to have a base domain for many routes which differs in the path, e.g.:</p>
<p><code>${namespace}.myapps.mycompany.com/${name}</code></p>
<p>Is this possible? Especially If I am not an admin of openshift at my company but a dev whose team is responsible just for a few namespaces?</p>
<p>For context: We want to use ArgoCD + Git to use gitops, but do not want to hardcode any infrastructure knowledge like the host or domain in our git repo. We came from using ingresses, but if we omit the host there no routes are generated at all...</p>
<p>Thanks in advance for any help!</p>

René Jahn
<p>You can have <a href="https://docs.openshift.com/container-platform/4.11/networking/routes/route-configuration.html#nw-path-based-routes_route-configuration" rel="nofollow noreferrer">path-based routes</a>, e.g., <code>[host]/[path]</code>. If you don't provide your own value for <code>[host]</code>, it will use the same OpenShift <code>${name}-${namespace}.myapps.mycompany.com</code> based values.</p>
<p>I'm not sure that you can change OpenShift's default route template, but you can definitely provide your own path values.</p>
