Pod Priority and Preemption
Learn how PriorityClasses rank Pods and how the scheduler can preempt lower-priority Pods to make room for critical workloads.
Not All Pods Are Equal
When the cluster is full, some workloads matter more than others. Pod priority lets you tell Kubernetes which Pods should win the competition for resources.
What Is a PriorityClass?
A PriorityClass is a cluster-wide object that maps a name to an integer value. Higher numbers mean higher priority.
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: high-priority
value: 1000000
globalDefault: false
description: 'For critical production workloads'All lessons in this course
- Resource Requests and Limits
- Node Selectors and Affinity
- Taints and Tolerations
- Pod Priority and Preemption