title: How to access client IP of an HTTP request from Google Container Engine?
body: <p>I'm running a gunicorn+flask service in a docker container with Google Container Engine. I set up the cluster following the tutorial at <a href="http://kubernetes.io/docs/hellonode/" rel="nofollow">http://kubernetes.io/docs/hellonode/</a></p>
  
  <p>The <code>REMOTE_ADDR</code> environmental variable always contains an internal address in the Kubernetes cluster. What I was looking for is <code>HTTP_X_FORWARDED_FOR</code> but it's missing from the request headers. Is it possible to configure the service to retain the external client ip in the requests?  </p>