I run the nginx service in a docker container with the Google Container Engine, which forwards certain domain names to other services such as APIs, Frontend, etc. I have a simple cluster for configured services. Nginx service is a load balancer.
The environment variable REMOTE_ADDR always contains the internal address in the Kubernetes cluster. I searched for HTTP_X_FORWARDED_FOR, but it is not in the request headers. Is it possible to configure a service to save an external ip client in requests?
source share