Описание тега pod-priority

Priority indicates the importance of a Pod relative to other Pods. When a Pod cannot be scheduled, the scheduler tries to preempt (evict) lower priority Pods to make scheduling of the pending Pod possible.

A PriorityClass is a non-namespaced object that defines a mapping from a priority class name to the integer value of the priority. The name is specified in the name field of the PriorityClass object’s metadata. The value is specified in the required value field. The higher the value, the higher the priority.

How to use priority and preemption

To use priority and preemption in Kubernetes 1.8 and later, follow these steps:

  1. Enable the feature.
  2. Add one or more PriorityClasses.
  3. Create Pods with priorityClassName set to one of the added PriorityClasses.