<p>I'm trying to enable some sort of rate limiting for a EKS cluster using nginx ingress controller where I also need to somehow whitelist a couple if IPs from this rate limit rule that are in charge of health and metrics checkups.
If I use the annotations <code>nginx.ingress.kubernetes.io/whitelist-source-range</code> and <code>nginx.ingress.kubernetes.io/limit-connections</code> it just adds  the limit to the whitelist IPs.
Is there another way to setup this?
Thank you!</p>

Sima Liviu
<p>The problem in fact that it ignores the whitelisting due to the lack of <code>x-forwarded-for</code>, but this activating this in production can be a security flaw, as discussed on: <a href="https://github.com/kubernetes/ingress-nginx/pull/2881" rel="nofollow noreferrer">https://github.com/kubernetes/ingress-nginx/pull/2881</a></p>
