title: How to get a pod external endpoint in Kubernetes?
body: <p>Let's suppose I have pods deployed in a Kubernetes cluster and I have exposed them via a NodePort service. Is there a way to get the pod external endpoint in one command ?</p>
  <p>For example:</p>
  <pre><code>kubectl &lt;cmd&gt;
  Response : &lt;IP_OF_NODE_HOSTING_THE_POD&gt;:30120 ( 30120 being the nodeport external port )
  </code></pre>