<p>I am trying to debug a pod with the status &quot;ImagePullBackOff&quot;.
The pod is in the namespace minio-operator, but when I try to to describe the pod, it is apparently not found.</p>
<p>Why does that happen?</p>
<pre><code>[psr-admin@zon-psr-2-u001 ~]$ kubectl get all -n minio-operator
NAME                                  READY    STATUS              RESTARTS    AGE
pod/minio-operator-5dd99dd858-n6fdj   0/1      ImagepullBackoff    0           7d

NAME                             READY.    UP-TO-DATE   AVAILABLE   AGE
deployment.apps/minio-operator   0         1            0           7d

NAME                                        DESIRED   CURRENT    READY     AGE
replicaset.apps/minio-operator-5dd99dd858   1         1          0         7d
[psr-admin@zon-psr-2-u001 ~]$ kubectl describe pod minio-operator-5dd99dd858-n6fdj
Error from server (NotFound): pods &quot;minio-operator-5dd99dd858-n6fdj&quot; not found
</code></pre>
<p><code>Error from server (NotFound): pods &quot;minio-operator-5dd99dd858-n6fdj&quot; not found</code></p>
<p><a href="https://i.stack.imgur.com/Zu5Go.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Zu5Go.png" alt="enter image description here" /></a></p>

Kim Tang
<p>You've not specified the namespace in your describe pod command.</p>
<p>You did <code>kubectl get all -n minio-operator</code>, which gets all resources in the <code>minio-operator</code> namespace, but your <code>kubectl describe</code> has no namespace, so it's looking in the <code>default</code> namespace for a pod that isn't there.</p>
<pre><code>kubectl describe pod -n minio-operator &lt;pod name&gt;
</code></pre>
<p>Should work OK.</p>
<p>Most resources in kubernetes are namespaced, so will require the <code>-n &lt;namespace&gt;</code> argument unless you <a href="https://stackoverflow.com/questions/55373686/how-to-switch-namespace-in-kubernetes">switch namespaces</a>.</p>
