Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kubernetes nodes unavailable with insufficient CPU

Tags:

kubernetes

I have a Kubernetes cluster and when I try to scale a Deployment up to 8 pods, it gives an error message:

"0/3 nodes are available: 3 insufficient cpu."

After some time it shows 3/8 pods available and then 5/8 pods available with the same error, but never reached 8 pods.

Recently we introduced CPU limits on Pods.

What is the cause and solution for this error?

like image 525
William Ross Avatar asked Jan 20 '26 13:01

William Ross


1 Answers

Scheduler is not able to schedule pods to any of 3 nodes as required resources are not available on nodes.

This may be due to cpu request value of pod is more than available cpu of nodes or actually your nodes don't have any cpu capacity left to schedule new pods.

Check available cpu capacity of nodes and increase it by removing non required pods. Also reduce cpu request value of pod if specified.

like image 177
Rajesh Deshpande Avatar answered Jan 23 '26 18:01

Rajesh Deshpande



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!