How to get client IP?


I deployed a pod with a NodeJS application. This application needs to check if the remote client IP address has access to the API.

When I run this application outside of a rancher pod it runs fine.

But, after I deployed it to my rancher I became unable to get the remote client IP address.

I’m using Ingress (L7 Ingress ) trying to get the header “X-REAL-IP” but his value is always “” or “” instead of the original remote client IP. I already set some annotations for the Load Balancer as shows below:


Unfortunately, none of them worked.

Please, is there anything else that I should do to be able to get the client remote IP?

Thank you.