Link Search Menu Expand Document

PriorityClass

default-priority-class.yaml

---
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
  name: default-priority-class
value: 1000
globalDefault: true
description: "Default priority class for all pods"

## Priority Class Example

  • Change value to set priority
  • GlobalDefault: true affects new pods only
  • Only one PriorityClass with globalDefault set to true can exist in the system.

Reference: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/