Background
Goals
- Allow viewing /browser with nginx ingress and the default eoAPI chart.
Possible solution
Mirror the Traefik behaviour, where the browser is excluded from strip-prefix and gets its own redirect middleware.
Two changes in templates/networking/ingress.yaml:
-
Honour skipStripPrefix in the nginx path helper as the Traefik template already does, so the browser renders as pathType: Prefix, path: /browser.
-
Render that path in a separate {{ .Release.Name }}-browser-ingress without rewrite-target / use-regex. Those are Ingress-scoped, so in the shared resource /browser is still rewritten to / (empty $2) even without the regex.
I would understand if this won't be accepted, as nginx ingress is deprecated. We should probably be targeting the Gateway API for future changes instead.
I'm happy to PR for this otherwise 👍
Background
templates/networking/ingress.yamlwe don't have the sameskipStripPrefixparam./gets the regex form and rewrite-target:/$2, meaning the prefix is always stripped, and we get a 404. I verifiedbrowser.ingress.path=/browserresults in the same.Goals
Possible solution
Mirror the Traefik behaviour, where the browser is excluded from strip-prefix and gets its own redirect middleware.
Two changes in
templates/networking/ingress.yaml:Honour
skipStripPrefixin the nginx path helper as the Traefik template already does, so the browser renders aspathType: Prefix,path: /browser.Render that path in a separate
{{ .Release.Name }}-browser-ingresswithoutrewrite-target/use-regex. Those are Ingress-scoped, so in the shared resource/browseris still rewritten to/(empty$2) even without the regex.I would understand if this won't be accepted, as nginx ingress is deprecated. We should probably be targeting the Gateway API for future changes instead.
I'm happy to PR for this otherwise 👍