Kubernetes

Running kubectl get pods you see Pods in "Pending" status. What would you do?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

One possible path is to run kubectl describe pod to get more details.

You might see one of the following:

  • Cluster is full. In this case, extend the cluster.
  • ResourcesQuota limits are met. In this case you might want to modify them
  • Check if PersistentVolumeClaim mount is pending

If none of the above helped, run the command (get pods) with -o wide to see if the node is assigned to a node. If not, there might be an issue with scheduler.