k8wiz
Kubernetes
Hard
Troubleshooting

Why can a node with 10% actual CPU usage still produce 'Insufficient cpu' in a FailedScheduling event?

Select your answer:

Show answer and explanation

Answer: The scheduler compares the Pod's requests with allocatable minus existing requests

Explanation

The NodeResourcesFit plugin rejects a node when the Pod's CPU request is larger than the node's allocatable CPU minus the summed requests of Pods already on it. Real usage and limits play no part. A node full of Pods with oversized requests is 'full' to the scheduler even when it is mostly idle.

Read more about Kubernetes