Kubectl get pods not showing any pods - Kubernetes using Kops

0 votes
I've created a kubernetes cluster using kops and now I'm trying to check if all my pods are running. I've also joined my nodes to the cluster and all my nodes seemed to be in the ready state.

I execute this command to check pod status:

kubectl get pods

but I don't see anything, no error no pods.

Have I done something wrong?
Jan 23, 2019 in Kubernetes by Alia
10,342 views
Can you show me the output of kubectl get nodes
My nodes have successfully joined the cluster and are in Ready state.

1 answer to this question.

0 votes

Hey @Alia, 

I agree with @Harish, It is not possible for the nodes to be in the ready state if the pods haven't come up. Also what command exactly have you been using for getting the pods?

The command that should be used:

kubectl get pods --all-namespaces
answered Jan 23, 2019 by Kavya
Ohh thanks @Kavya, I was using just kubectl get pods. How stupid of me.

kubectl get pods --all-namepsaces worked for me.

Related Questions In Kubernetes

0 votes
1 answer

deleting pods using kubernetes replication controller

The pods which are managed by ReplicationController ...READ MORE

answered Jul 24, 2018 in Kubernetes by DareDev
• 6,890 points
1,030 views
0 votes
1 answer
0 votes
3 answers

Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) while setting up kubernetes

Execute these three commands: sudo rm /var/lib/apt/lists/lock sudo rm ...READ MORE

answered Nov 27, 2018 in Kubernetes by Maverick
• 10,840 points
1,745 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 52,360 points
1,352 views
+1 vote
1 answer
0 votes
2 answers
0 votes
1 answer

is there any way we can run kubectl command without sudo acess in KOPS kubernetes?

Yes, you can use kubectl on kops ...READ MORE

answered Aug 28, 2019 in Kubernetes by Adarsh
2,330 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP