<p>Reading the <a href="http://kubernetes.io/docs/user-guide/labels/#selecting-sets-of-nodes" rel="noreferrer">Kubernets documentation</a> it looks to be possible to select a certain range of pods based on labels. I want to select all the pods on one node but I don't want to label each pod on their corresponding node.</p>
<p>Am I missing something from the documentation or is it just not possible to select by node?</p>
<p>If I do:</p>
<pre class="lang-shell prettyprint-override"><code>kubectl get pods \
--output=wide
--namespace=$NS \
--server=$SERVER | head

#=&gt;

NAME   READY     STATUS             RESTARTS   AGE       NODE
</code></pre>
<p>Can any of these headers be used as selector? If yes, how to do it with <code>kubectl</code>?  How to do it with the API?</p>

Fran
<p>As mentioned in the accepted answer the PR is now merged and you can get pods by node as follows:</p>

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