<p>Is it possible to get the external IP address for a POD? It doesn't appear to be populating in the environmental variables for a service, so I was wondering if there was another way to get that information.</p>

<p>Basically: I'm setting up a proftpd service, and it needs to send out its external ip as well as a port for passive communication. Right now, it's sending the local IP address which is causing FTP clients to fail.</p>

<p>The kubernetes service discovery mechanism (DNS or environment variable) doesn't populate the external IP.</p>

<p>One way to work around is to create a static IP first, then assign it to your <a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/api/v1/types.go#L2093-L2098" rel="nofollow">service</a>.</p>

<p>Or you can exec kubectl inside your cluster to get the external IP but that's nasty.</p>
