<p>Is there a way to get the pods that have status <code>Running</code> and also <code>ready 1/1</code>? This is what I tried so far:</p>
<pre><code>kubectl get pod -l app=quarkus-jvm --field-selector=status.phase==Running
</code></pre>
<p>The command above returns also the pods that are not <code>ready 0/1</code>. I would like to get only one entry, the one with <code>ready 1/1</code>.</p>
<p><a href="https://i.stack.imgur.com/9Ofgc.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9Ofgc.jpg" alt="enter image description here" /></a></p>
<p>Thank you !</p>

happy songs
<p>I have tested this on a playground</p>
<p>Before:</p>
<pre><code>[node2 ~]$ kubectl get pods --field-selector=status.phase==Pending 
nginx-deployment-66b6c48dd5-cctsd   0/1     Pending   0          8m29s
nginx-deployment-66b6c48dd5-hlhlp   0/1     Pending   0          8m29s
</code></pre>
<p>After</p>
<pre><code> kubectl get pods --field-selector=status.phase==Pending | grep &quot;66b6c48dd5-cctsd&quot;
nginx-deployment-66b6c48dd5-cctsd   0/1     Pending   0          8m49s
</code></pre>
<p>The grep command is a way to filter content. You can try with this one command:</p>
<pre><code>kubectl get pod -l app=quarkus-jvm --field-selector=status.phase==Running | grep &quot;1/1&quot;
</code></pre>
