Skip to main content

PriorityClass

---
title: Priority Class
sidebar_label: PriorityClass
---

A Priority Class in Kubernetes is a way to assign different priority levels to Pods, influencing the order and eviction sequence of Pods during scheduling and resource contention. This allows Mission-Critical workloads to have a higher priority than others, ensuring they are more resilient to system degradation. For more detailed information, refer to the [official Kubernetes documentation on Priority Classes](https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass).

**Terrafrom Mappings:**

- `kubernetes_priority_class_v1.metadata[0].name`
- `kubernetes_priority_class.metadata[0].name`

## Supported Methods

- `GET`: Get a Priority Class by name
- `LIST`: List all Priority Classes
- `SEARCH`: Search for a Priority Class using the ListOptions JSON format e.g. ("labelSelector": "app=wordpress")