0

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:

${name}-${namespace}.myapps.mycompany.com

I would prefer to have a base domain for many routes which differs in the path, e.g.:

${namespace}.myapps.mycompany.com/${name}

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?

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...

Thanks in advance for any help!

René Jahn
  • 1,155
  • 1
  • 10
  • 27

1 Answers1

1

You can have path-based routes, e.g., [host]/[path]. If you don't provide your own value for [host], it will use the same OpenShift ${name}-${namespace}.myapps.mycompany.com based values.

I'm not sure that you can change OpenShift's default route template, but you can definitely provide your own path values.

Will Gordon
  • 3,303
  • 2
  • 11
  • 22