FEATURE/HELP REQUEST:
I am using the nginx.ingress.kubernetes.io/whitelist-source-range to globally restrict access, however now I would like to add some path as exception and remove the restriction on those paths.
I have played around with the nginx.ingress.kubernetes.io/(configuration|server)-snippet: annotations but I can not get around the global restriction.
Without something like a "location @proxy" to be re-usable, it seems impossible to make exceptions to the global nginx.ingress.kubernetes.io/whitelist-source-range restriction.
NGINX Ingress controller version:
0.25.1
Kubernetes version:
v1.13.10
Closing. You can achieve this creating a new Ingress rule for the same host and particular path where you don't want this restriction (without any annotation)
Indeed, it works, thanks a lot! I did not know several ingress declaring the same host would cohabit that way.
Most helpful comment
Indeed, it works, thanks a lot! I did not know several ingress declaring the same host would cohabit that way.