BM: Baca dalam Bahasa Melayu
World K5: Lunch Rush
ResourceQuotas and LimitRanges
You will learn: how to give each zone a budget and a default plate size.
Checked with Kubernetes 1.37 on 31 Oct 2026
The problem
Three teams share one food court. One team orders 50 trays and fills every stall. The others get nothing. How do you stop that?
Pick one answer.
Watch
kind-dev namespace defaultA ResourceQuota: A zone's budget: the most CPU, memory or trays one namespace may ask for. is a zone’s budget. In total, the food zone may ask for 1 CPU, 1Gi and 10 trays.
Try it
A LimitRange: The zone's default plate size: requests and limits for containers that set none. sets a default plate size. Containers with no requests get these numbers. Tap the line that sets the default CPU request.
Tap the default CPU request.
0 of 1 found
Predict
Each shop tray now asks for 250m CPU. The zone’s budget is 1 CPU. You order 5 trays. How many start?
Pick one answer.
Check
kind-dev namespace defaultexceeded quota in plain words: the 5th tray would go over the zone’s budget. So it was never made.
Try it
Make the shop fit the budget: ask for 4 trays. The pink bar shows you are in the food zone.
kind-dev namespace fooddev-control-planeOpenManagerNo trays here.
dev-workerOpen- shop·5wqrc
- shop·qwclt
dev-worker2Open- shop·6f495
- shop·s7jmh
Hint
Typekubectl scale deployment shop --replicas=4.Check
True or not? Sort each sentence.
Drag a card into a box. Or tap the card, then tap the box.
You did it!
You can now give a zone a budget and a default plate size.
Go deeper (optional)
kubectl describe namespace food shows the budget and what is used. Quotas can also count objects, such as Services or Secrets. A LimitRange can set a min and max too. Then a tray that asks for too much is refused.
Real rep (optional): make a namespace on kind and add both files. Then order too many trays.
Bahasa Melayu
Tiga pasukan kongsi satu medan selera. Satu pasukan pesan 50 pod (dulang) dan penuhkan semua gerai. Yang lain tak dapat apa-apa. Macam mana nak elak?
ResourceQuota ialah bajet satu zon. Zon food boleh minta 1 CPU, memori 1Gi dan 10 pod semuanya.
LimitRange tetapkan saiz pinggan lalai. Container tanpa requests dapat nombor ini. Tekan baris yang tetapkan request CPU lalai.
Setiap pod kedai kini minta CPU 250m. Bajet zon ialah 1 CPU. Anda pesan 5 pod. Berapa yang bermula?
exceeded quota dalam bahasa mudah: pod ke-5 akan melebihi bajet zon. Jadi ia tak pernah dibuat.
Buat kedai muat dalam bajet: minta 4 pod. Bar merah jambu tunjuk anda dalam zon food.
kubectl scale deployment shop --replicas=4.Betul atau tidak? Asingkan setiap ayat.
Kini anda boleh beri zon satu bajet dan saiz pinggan lalai.
You finished this before. Practice is always welcome!
Official docs: Kubernetes: resource quotas · Kubernetes: limit ranges · kubectl create quota
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?