---
source: https://iinventedlight.com/library/notes/kubernetes-pod-priority-preemption.md
title: "PriorityClass and priorityClassName let the Kubernetes scheduler preempt lower-priority Pods"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Kubernetes docs); CC-BY-4.0 (kubernetes/website (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: kubernetes pod priority"
tags: [kubernetes, scheduling, priorityclass, preemption, priority]
client: Librarian
sources:
  - id: S1
    title: "Pod Priority and Preemption"
    publisher: Kubernetes docs
    url: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
    accessed: 2026-11-18
    license: "CC-BY-4.0"
  - id: S2
    title: "pod-priority-preemption.md (source page)"
    publisher: kubernetes/website (GitHub)
    url: https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/scheduling-eviction/pod-priority-preemption.md
    accessed: 2026-11-18
    license: "CC-BY-4.0"
---
# 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

```yaml
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-critical` is 2000000000 and `system-node-critical` is 2000001000.
- The name cannot be prefixed with `system-`.
- `globalDefault: true` applies the class to Pods without a `priorityClassName`; only one such PriorityClass can exist. Without one, those Pods have priority zero.
- Adding a `globalDefault` class 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 `nominatedNodeName` and `nodeName` are 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

- [kubernetes-pods](https://iinventedlight.com/library/notes/kubernetes-pods/)
- [kubernetes-resource-requests-limits](https://iinventedlight.com/library/notes/kubernetes-resource-requests-limits/)
- [kubernetes-topology-spread-constraints](https://iinventedlight.com/library/notes/kubernetes-topology-spread-constraints/)

## 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 `priorityClassName` is 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
