Kubernetes Pod stays Pending: Read FailedScheduling before lowering resource requests

A Pod stuck in Pending may never have reached a node. If its events report FailedScheduling, distinguish advertised capacity and the Pod's resource requests from label, affinity, and taint requirements before editing workloads.

1. Check whether a node was ever selected

kubectl get pod -n serving worker -o wide
kubectl describe pod -n serving worker

Use these examples for a namespace you can inspect. Look for a blank node assignment, PodScheduled=False, and events from the scheduler. A Pod holding in Pending after a node has already been assigned needs a different path, such as image pull or volume setup. For a scheduling failure, copy the event wording and time. Different nodes can fail for different reasons in the same event.

2. Match each reason to the constraint it describes

Insufficient cpu refers to scheduling capacity relative to requested CPU and the node's allocations. The momentary CPU load chart can be low while the node has already admitted other Pods with large requests. A selector or required affinity mismatch means the node labels cannot accept this Pod under the specified rules. An untolerated taint means a deliberate policy separates that node from the workload. Check the intended pool first; do not remove a cluster-wide isolation rule simply to make Pending disappear.

Compare request units, the deployment template, and the available capacity of the intended candidates. Be alert to CPU units such as 750m and 1. If the workload really needs that capacity, freeing space through an approved rollout or adding capacity to the correct pool is a different decision from reducing the workload's requirements.

3. Verify placement and then verify readiness

Hypothetical example: the required pool has 250 millicores of unallocated requested capacity per node, while the worker asks for 500 millicores. Another pool has room, but does not match the required selector. The scheduler cannot combine spare CPU across nodes for one Pod, and it cannot use the other pool under that policy. Compare the event and requests with the intended resources, change one reviewed constraint, and inspect the next scheduling outcome.

Success means the Pod moves to an eligible node, its assignment matches the intended pool, and it subsequently becomes Ready. If events mention unbound claims or anti-affinity instead, follow those messages first. The numbers above are illustrative rather than measured against a cluster.

Sources

댓글

이 블로그의 인기 게시물

소니 A6000 Wi-Fi 전송 (컴퓨터로 보내기)

SVN 서버 설치 및 웹 접속 설정-Ubuntu 14.04

VirtualBox(VM) 화면 크기 조절