Not enough CPU and Memory resource
There can be many reason why a pod is in a Pending state. One reason is that
the pod
has requested more CPU and Memory than there is available in the cluster.
How k8sbot can help
By asking k8sbot to describe the pod
. It will give you pertinent details on
why the pod is in a pending
state.
Command:
@k8sbot describe pod <pod name>
Response:
NAME READY STATUS RESTARTS AGE POD IP NODE IP
echoserver-not-enough-cpu-memory-554ccbc779-8pp28 --- Pending --- ---
Pod Conditions:
TYPE STATUS REASON MESSAGE
PodScheduled False Unschedulable 0/3 nodes are available: 3 Insufficient cpu, 3 Insufficient memory.
Events:
TYPE REASON FROM MESSAGE
Warning FailedScheduling default-scheduler 0/3 nodes are available: 3 Insufficient cpu, 3 Insufficient memory.
*Recommendation:*
* The nodes available don't have enough cpu and memory resources. This usually means that the pod has requested for more CPU and memory than is available on the cluster
* The nodes available don't have enough memory resources. This usually means that the pod has requested for more memory than is available on the cluster