Why can't I see my pod with kubectl even though it's running?
Asked by
CuriousCat42
I'm having trouble seeing a specific pod when I run the `kubectl get pod` command. The confusing part is that the pod is still active and generating logs, which I can view in Kibana. I also checked ArgoCD, but the pod and its replica set don't show up there either. However, there are other existing replica sets and pods. Any ideas on what could be going on?
Answers
You might want to dig deeper using `crictl` directly on the node to see if the pod is running at the node level. That can give you more insight if there's a miscommunication with `kubectl`. A little more investigation might help clear things up!
Reply to this answer
Just to cover all basesโdid you possibly force delete the pod at any point? This could explain why itโs not appearing in your `kubectl` commands despite the logs still displaying.
Reply to this answer
It's a good idea to check the logs in Kibana for any Kubernetes metadata like the namespace. Also, double-check your current context to ensure you're targeting the correct cluster. If you're managing multiple clusters, switching contexts could show the missing pod!
Reply to this answer
Have you checked if you are in the right namespace and cluster? Sometimes pods can be hiding there. Make sure you're viewing all namespaces as well; you can use the `-A` option to list pods across all of them!
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions