QoS classes
What is QoS classes?
QoS classes: Quality of Service tiers Kubernetes assigns from your requests/limits: Guaranteed (limits == requests on all containers), Burstable (some requests set), BestEffort (none set). Kubernetes assigns every pod a Quality of Service class based on its resource requests and limits. Guaranteed pods have requests equal to limits for CPU and memory. Burstable pods have some requests set. BestEffort pods have none.
Frequently asked questions about QoS classes
How is QoS classes used in practice?
The class decides who is evicted first when a node runs short of memory. BestEffort pods go first, then Burstable pods using more than they requested, and Guaranteed pods last.
What should you keep in mind with QoS classes?
For important workloads, such as databases or the main web application, set requests and limits so they are Guaranteed or at least Burstable with realistic requests. Never leave production pods without requests: besides being evicted first, they also make it impossible for the scheduler to place them sensibly. kubectl describe pod shows the assigned class.
What does an example of QoS classes look like?
# Guaranteed: resources: requests: { cpu: "500m", memory: "512Mi" } limits: { cpu: "500m", memory: "512Mi" } At a glance
| Category | Kubernetes |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |