Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Why is pod not found? Error from server (NotFound): pods "curl-pod" not found

I can list pods in my prod namespace

kubectl get pods -n prod
NAME       READY   STATUS    RESTARTS      AGE
curl-pod   1/1     Running   1 (32m ago)   38m
web        1/1     Running   1 (33m ago)   38m

I got error

kubectl describe pods curl-pod
Error from server (NotFound): pods "curl-pod" not found

Get events show

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

   Normal   Scheduled        pod/curl-pod   Successfully assigned prod/curl-pod to minikube

Why?

>Solution :

kubernetes manages by namespace, so you must specify namespace otherwise kubernetes will use namespace default.
So, you must type:

kubectl describe pod/curl-pod -n prod
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading