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.
More hard Kubernetes questions
- Why does 'pod has unbound immediate PersistentVolumeClaims' appear in a FailedScheduling message without a per-node count?
- A Pod requests 64 CPU on a cluster of 16-CPU nodes. Why does its event end with 'Preemption is not helpful for scheduling'?
- What is a Kubernetes Operator?
- What is a Kubernetes Admission Controller?
- What is a Kubernetes Custom Resource Definition (CRD)?
- What is a Kubernetes PodDisruptionBudget used for?