<p>I have a Kubernetes <code>Service</code> with a static <code>External IP</code> assigned to a <code>Replication Controller</code> managing 1 application distributed to 2 <code>Pods</code>. I can access the application using the external IP, this part works fine.</p>

<p>I'd like now to have the application inside the Pods using the same IP when making HTTP requests to external applications (outside the cluster).</p>

<p>A simple call to <code>https://api.ipify.org/</code> shows that the IP of this application is completely different from the external IP it answers at. How can I make it use the same IP?</p>

<p>according to the <a href="https://kubernetes.io/docs/user-guide/services/#external-ips" rel="nofollow noreferrer">documentation</a> the <code>externalIP</code> assignment for a <code>Service</code> is just meant for ingress traffic. Along with that the somewhat related <a href="https://docs.openshift.org/latest/dev_guide/integrating_external_services.html" rel="nofollow noreferrer">Integrating External Services</a> documentation from OpenShift doesn't mention any options to proxy the egress traffic through the defined <code>Endpoint</code>. Therefore it seems that you're trying something which doesn't work with Kubernetes out of the box.</p>
