I have a Kubernetes cluster which has 5 different services. After cluster deployment I can run:
kubectl get pods
and see all my pods. But after a few minutes when I run the same command again, I see:
No resources found.
And I'm able to see my pods only after running:
kubectl get pods --all-namespaces
Can someone explain what is my problem?