title: How to get public IP from container in kubernetes
body: <p>I have multiple instance of containers deployed in kubernetes.</p>
  
  <p>The application in the container requires the public IP from the pod / node.  </p>
  
  <p>From the deployment manifest, I tried to use the following, </p>
  
  <ul>
  <li>status.podIP</li>
  <li>spec.nodeName</li>
  </ul>
  
  <p>But both of them return the private IP address of my node rather then the public IP.  </p>
  
  <p>Can someone help explain where the status.podIP value comes from?  Is it coming from the node manifest?  Or from the VM / docker configuration?
  Any suggestion on how I can get the public IP address into my container?</p>
  
  <p>Thanks</p>