<p>We have deployed a few pods in  cluster in various namespaces. I would like to inspect and identify all pod which is not in a Ready state.</p>
<pre><code> master $ k get pod/nginx1401 -n dev1401
 NAME        READY   STATUS    RESTARTS   AGE
 nginx1401   0/1     Running   0          10m
</code></pre>
<p>In above list, Pod are showing in Running status but having some issue. How can we find the list of those pods.  Below command not showing me the desired output:</p>
<pre><code> kubectl get po -A | grep Pending Looking for pods that have yet to schedule

 kubectl get po -A | grep -v Running Looking for pods in a state other than Running     

 kubectl get pods --field-selector=status.phase=Failed
</code></pre>

<p>There is a long-standing feature request for this. The <a href="https://github.com/kubernetes/kubernetes/issues/49387#issuecomment-663903782" rel="nofollow noreferrer">latest entry</a> suggests</p>
<pre><code>kubectl get po --all-namespaces | gawk 'match($3, /([0-9])+\/([0-9])+/, a) {if (a[1] &lt; a[2] &amp;&amp; $4 != &quot;Completed&quot;) print $0}'
</code></pre>
<p>for finding pods that are running but not complete.</p>
<p>There are a lot of other suggestions in the thread that might work as well.</p>
