<p>This is an extension to the question <a href="https://stackoverflow.com/questions/39231880/kubernetes-api-gets-pods-on-specific-nodes">here</a> - how can I get the list pods running on nodes with a certain label?</p>
<p>I am trying to find the pods in a specific zone (failure-domain.beta.kubernetes.io/zone)</p>

<p>You can get all nodes' name with the label you want using <code>for</code> command and list the pods within theses nodes:</p>
<p>Example:</p>
<pre><code>for node in $(kubectl get nodes -l failure-domain.beta.kubernetes.io/zone=us-central1-c -ojsonpath='{.items[*].metadata.name}'); do kubectl get pods -A -owide --field-selector spec.nodeName=$node; done
</code></pre>
<p>The command will list all pods with label <code>failure-domain.beta.kubernetes.io/zone=us-central1-c</code> and then list the pods.</p>
