<p>I have created a deployment with NodePort. Pod is created and pod has an IP. Only one container is running in a pod. I want to access that container/pod IP from external apart from Master or node. Now I'm able to ping the pod IP from master and node, but not from my device. Container/pod should be pingable from my device. I'm able to ping my device from my pod/container. </p>

<p>What needs to be done to make the pod IP visible/reachable from the outside?</p>

Srivalli Ganesh
<p>You need to point to Service port (of type NodePort) on a node, not the pod IP.</p>

<pre><code>kubectl get service &lt;my-service&gt;
</code></pre>

<p>Check what port did you get. Then get IP of any node of the k8s cluster</p>

<pre><code>kubectl get nodes
</code></pre>

<p>And reach it like </p>

<pre><code>telnet &lt;node_ip&gt;:&lt;service_port&gt;
</code></pre>

<p>More on service types: <a href="https://kubernetes.io/docs/concepts/services-networking/service/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/service/</a></p>
