How can I configure nginx.ingress.kubernetes.io/rewrite-target
and spec.rules.http.paths.path
to satisfy the following URI patterns?
/a
Came up with the following configuration - it is working for all of my test routes / requirements so far.
The regex is almost the same as the one posted by @Gilgames.
I based mine on the official docs rewrite example: https://kubernetes.github.io/ingress-nginx/examples/rewrite/#rewrite-target
Apart from that I took a quick course at https://www.regular-expressions.info/