<p>I need to get the list of pods running in a worker node by executing a command from master node. I can achieve if i moved into the worker node and execute <code>kubectl get pods -n ns</code>. But i need to execute this from the master node and get pods in worker.</p>

AkshayBadri
<p>You can get pods running on specific node by using this command: </p>

<pre><code>kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=&lt;node&gt;
</code></pre>

<p>This will list all pods from all namespaces but you can narrow it down for specific namespace. </p>
