<p>we are looking  to find the list of pods which is not in running state or having some issue.  Though below command pull pods detail including good ones, however we are targeting only bad ones</p>
<pre><code>'kubectl get pods -A' 
</code></pre>

sachin
<p><code>kubectl get pods --field-selector=status.phase=Failed</code></p>
<p>Or some better specification can be found <a href="https://kubernetes.io/docs/reference/kubectl/cheatsheet/#viewing-finding-resources" rel="nofollow noreferrer">here</a>.</p>
