BM: Baca dalam Bahasa Melayu
World K2: Trays & Orders
QoS classes
You will learn: the three QoS classes, and which pods leave first when a node runs short.
Checked with Kubernetes 1.37 on 31 Oct 2026
The problem
A stall is running out of memory. Someone has to leave, or everyone suffers. Who should go first?
Pick one answer.
Watch
Kubernetes gives every pod a QoS class: Guaranteed, Burstable or BestEffort. When a stall runs short, BestEffort pods leave first., worked out from its requests and limits. Sort these trays.
Drag a card into a box. Or tap the card, then tap the box.
Watch
kind-dev namespace defaultYou never write the class. Kubernetes works it out and stores it in the pod’s status. jsonpath reads one field.
Try it
Memory runs short on a stall. Who leaves first? Put them in order.
First to leave at the top. Put these in order. Use the arrows, or drag.
- BestEffort pods
- Guaranteed pods, last of all
- Burstable pods using more than they booked
Hint
Fewer promises, earlier exit.Try it
Your turn. Apply gold.yaml. Then read its class: kubectl get pod gold -o jsonpath={.status.qosClass}.
kind-dev namespace defaultdev-control-planeOpenManagerNo trays here.
dev-workerOpenNo trays here.
dev-worker2OpenNo trays here.
Hint
Copy the field path exactly, braces and dots too.Check
A container requests cpu: 100m and memory: 64Mi. Its only limit is memory: 64Mi. Which class?
Pick one answer.
You did it!
You can now tell the three QoS classes apart and know who leaves first.
Go deeper (optional)
If a container sets only limits, its requests copy the limits. So limits for CPU and memory alone also give Guaranteed. When memory runs short, the kubelet evicts pods using more than they requested first.
Real rep (optional): on a throwaway cluster, apply the three pods and run kubectl describe pod bronze. Find the QoS Class line.
Bahasa Melayu
Satu gerai kehabisan memori. Seseorang mesti keluar, atau semua susah. Siapa patut keluar dulu?
Kubernetes beri setiap pod satu kelas QoS, dikira daripada requests dan limits. Susun dulang ini.
Anda tak pernah tulis kelas itu. Kubernetes kira dan simpan dalam status pod. jsonpath baca satu medan.
Memori tak cukup di satu gerai. Siapa keluar dulu? Susun mereka.
Giliran anda. Apply gold.yaml. Kemudian baca kelasnya: kubectl get pod gold -o jsonpath={.status.qosClass}.
Satu container minta cpu: 100m dan memory: 64Mi. Limit satu-satunya ialah memory: 64Mi. Kelas apa?
Kini anda boleh bezakan tiga kelas QoS dan tahu siapa keluar dulu.
You finished this before. Practice is always welcome!
Official docs: Kubernetes: Pod Quality of Service classes · Kubernetes: Node-pressure eviction
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?