Kubernetes pod stuck in pending state and no events

Question:

There aren’t any other pods deployed. I have 2 nodes with zero pods. Its a t3.small instance type.

Is there any other commands to debug and see why it is still stuck in pending state?

Deployments shows that it has scaled and nothing wrong there.

cat 01-storage-class.yml

cat 02-persistent-volume-claim.yml

cat 03-UserManagement-ConfigMap.yml

cat 04-mysql-deployment.yml

cat 05-mysql-clusterip-service.yml

kubectl describe nodes

Answer:

In this setup, I would first suspect something wrong with the persistent storage. Do a describe on the Persistent Volume Claim and Storage Class to see whether they are alright.

Also, if this is an EKS cluster, you can use the preinstalled EBS storage class.

Leave a Reply