Pods show `SchedulingGated` status and never get scheduled.
AdvancedTroubleshootingScheduling and Pending Pods
Answer
Likely causes → The Pod has spec.schedulingGates. The scheduler ignores it until every gate is removed. A controller (Kueue, a quota manager, a custom admission tool) was supposed to remove the gate and did not, often because it is down or the Pod does not fit its queue.
Diagnose →
kubectl get pod job-x -o jsonpath='{.spec.schedulingGates}'
kubectl get workloads -A # Kueue
kubectl logs -n kueue-system deploy/kueue-controller-manager --tail=100
Fix → Fix or restart the controller that owns the gate, or check that the queue has quota. As a last resort remove the gate manually with a patch on spec.schedulingGates (only removal is allowed).
Prevent → Monitor Pods in SchedulingGated for longer than expected; treat the gating controller as critical.
More on Scheduling and Pending Pods
Pods are Pending with `0/5 nodes are available: 5 Insufficient cpu. preemption: 0/5 nodes are available: 5 No preemption victims found for incoming pod.`Beginner`kubectl top nodes` shows nodes at 20% CPU, yet new Pods fail with `Insufficient cpu`. Explain it to a developer.Beginner`0/4 nodes are available: 1 node(s) had untolerated taint {node-role.kubernetes.io/control-plane: }, 3 node(s) had untolerated taint {dedicated: gpu}`.BeginnerA StatefulSet Pod is Pending with `pod has unbound immediate PersistentVolumeClaims`.Beginner`0/3 nodes are available: 3 node(s) didn't match Pod's node affinity/selector.`BeginnerA 6-replica Deployment has 3 Pods Running and 3 Pending: `0/3 nodes are available: 3 node(s) didn't match pod anti-affinity rules`.Intermediate