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 “10.127.0.8” or “10.127.0.7” 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?