Get the client Ip behind a loadbalancer
The X-Forwarded-For (XFF) HTTP header field is a setting to configure through the web server. The web server is the service that serves your site from the backend node. The most common are Apache and NGINX.
I did a quick Google search and found these pieces of documentation that should help:
i don't really understand how i will configure nginx for API services to get the client Ip, is there anything i need to do on the load balancer dashboard,
i tried to read the x-forward-for , it is returning a weird Ip address that is based in UK (where my cluster is located) but i'm sending request (as a client) from another country far away from UK
found answer here after hours of headache