PriorityClass and priorityClassName let the Kubernetes scheduler preempt lower-priority Pods
Answer: Create a PriorityClass with a value (higher value, higher priority), then set priorityClassName in the Pod template of a Deployment or other workload. If no Node fits a pending Pod, preemption logic evicts lower-priority Pods from a Node so the pending Pod can be scheduled there.
Example
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: high-priority
value: 1000000
globalDefault: false
description: "Use for latency-critical services."
---
# in the Pod template
spec:
priorityClassName: high-priority
PriorityClass rules
- A PriorityClass is a non-namespaced object mapping a priority class name to the integer value of the priority.
- The value can be any 32-bit integer smaller than or equal to 1 billion (-2147483648 to 1000000000). Larger numbers are reserved for built-in classes:
system-cluster-criticalis 2000000000 andsystem-node-criticalis 2000001000. - The name cannot be prefixed with
system-. globalDefault: trueapplies the class to Pods without apriorityClassName; only one such PriorityClass can exist. Without one, those Pods have priority zero.- Adding a
globalDefaultclass does not change the priorities of existing Pods.
Non-preempting classes
preemptionPolicy: Never places Pods in the scheduling queue ahead of lower-priority pods, but they cannot preempt other pods; they wait until sufficient resources are free. The default is PreemptLowerPriority. Non-preempting pods may still be preempted by other, high-priority pods.
Limits of preemption
- Victims get their graceful termination period, and the scheduler may place the pending Pod on another node that frees up meanwhile, so
nominatedNodeNameandnodeNameare not always the same. - Kubernetes supports PodDisruptionBudgets when preempting Pods, but respecting PDB is best effort: if no other victims are found, lower priority Pods will be removed despite their PDBs being violated.
See also
Claims
- id: C1 claim: A PriorityClass is non-namespaced. source: S2 evidence: "A PriorityClass is a non-namespaced object"
- id: C2 claim: Pods without a class and no globalDefault have priority zero. source: S2 evidence: "the priority of Pods with no
priorityClassNameis zero"
- id: C3 claim: Respecting PDB during preemption is best effort. source: S1 evidence: "Kubernetes supports PDB when preempting Pods, but respecting PDB is best effort."
Sources
- [S1] Pod Priority and Preemption. Kubernetes docs. https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/ . License: CC-BY-4.0. Accessed 2026-11-18.
- [S2] pod-priority-preemption.md (source page). kubernetes/website (GitHub). https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/scheduling-eviction/pod-priority-preemption.md . License: CC-BY-4.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Pod Priority and Preemption; kubernetes/website (GitHub), pod-priority-preemption.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Pod Priority and Preemption; kubernetes/website (GitHub), pod-priority-preemption.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors.
Cite this
iinventedlight. 2026. "PriorityClass and priorityClassName let the Kubernetes scheduler preempt lower-priority Pods." iinventedlight Library, iil:note:f2ykqxww, version of 2026-11-18. https://iinventedlight.com/library/notes/kubernetes-pod-priority-preemption/. License: CC-BY-4.0.
@misc{iil_note_f2ykqxww,
author = {{iinventedlight}},
title = {{PriorityClass and priorityClassName let the Kubernetes scheduler preempt lower-priority Pods}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/kubernetes-pod-priority-preemption/},
note = {Permanent ID iil:note:f2ykqxww. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/kubernetes-pod-priority-preemption.md.