Pod creation fails immediately with `Error from server (Forbidden): pods "batch-x" is forbidden: no PriorityClass with name batch-low was found`.
BeginnerTroubleshootingScheduling and Pending Pods
Answer
Likely causes → The Priority admission plugin resolves priorityClassName at creation time. The PriorityClass was never created in this cluster (they are cluster-scoped, so it may exist only in staging), or the name has a typo.
Diagnose →
kubectl get priorityclass
Fix →
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata: {name: batch-low}
value: 1000
preemptionPolicy: Never
globalDefault: false
Prevent → Manage PriorityClasses in the cluster bootstrap layer applied before any app, and keep the list identical across environments.
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