Ingress-nginx: Unrestrict certain paths when using the global whitelist-source-range restriction

Created on 16 Sep 2019  路  2Comments  路  Source: kubernetes/ingress-nginx

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

Most helpful comment

Indeed, it works, thanks a lot! I did not know several ingress declaring the same host would cohabit that way.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings