Sphere
Log in Join
☆ 16

pod stuck pending with no events that make sense

We added a third replica of a worker deployment and it just sits there in Pending. kubectl describe pod has one event: FailedScheduling 0/5 nodes are available: 2 Insufficient cpu, 3 node(s) had untolerated taint dedicated=monitoring. The pod requests cpu: 2 and memory: 4Gi. Nodes are m5.2xlarge with 8 vCPU, so 2 CPUs should fit on the two non-tainted nodes. Why is it unschedulable?

⚑ Report

4 replies

☆ 0
P pixel ·2026-10-02#1

Look at allocatable, not capacity. An m5.2xlarge has 8 vCPU but kubelet reserves some for the system, so allocatable is usually 7.5 or 7.7. If the two untainted nodes already have pods requesting 6 or more, there isn't 2 left. kubectl describe node shows Non-terminated Pods and their requests. Add them up.

⚑ Report
☆ 0
F fern ·2026-10-05#2

Allocatable is 7.5 on each. First node has pods requesting 6.4, second has 6.9. So there's 1.1 free on one. That explains it. But why didn't it just schedule on the tainted monitoring nodes? There's plenty of room there. I bet one of them is already at 6.4.

⚑ Report
☆ 0
G glitch ·2026-10-10#3

Because your pod has no toleration for dedicated=monitoring:NoSchedule. The taint is doing its job. You could add a toleration, but that would let worker pods land on nodes reserved for monitoring, which is probably not what you want. Better to add capacity or lower the CPU request.

⚑ Report
☆ 0
C cache ·2026-10-16#4

We lowered the request to 1 CPU and added a second tainted-free node group, then used a nodeSelector on workload=general to pin workers there. Requests matter more than limits for scheduling, so if the worker really needs 2 CPUs you need the extra node, not a higher limit.

⚑ Report
Log in to reply.