DELAPARRA
Index
Color
NL
Category: Kubernetes

QoS classes

Explained by Updated

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.

Definition source Coders Lingo, CC BY 4.0

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

CategoryKubernetes
Explained by
Updated

More Kubernetes terms

All terms starting with Q

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.