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 in Kubernetes by Alia
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 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,810 points
0 votes
1 answer
0 votes
1 answer

Accessing remote kubernetes cluster on azure using kubectl

So, try this. Edit your kube config ...READ MORE

answered Sep 11, 2018 in Kubernetes by ajs3033
• 7,280 points
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
• 39,170 points
0 votes
1 answer
0 votes
2 answers
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,040 points