Kubernetes describe pod - Error from server (NotFound)

4/17/2020

I am trying to debug a pod with the status "ImagePullBackOff". The pod is in the namespace minio-operator, but when I try to to describe the pod, it is apparently not found.

Why does that happen?

enter image description here

-- Kim Tang
docker
kubectl
kubernetes

1 Answer

4/17/2020

You've not specified the namespace in your describe pod command.

You did kubectl get all -n minio-operator, which gets all resources in the minio-operator namespace, but your kubectl describe has no namespace, so it's looking in the default namespace for a pod that isn't there.

kubectl describe po -n minio-operator <pod name> should work OK.

-- SiHa
Source: StackOverflow