BM: Baca dalam Bahasa Melayu
World K2: Trays & Orders
Pods: a tray of dishes
You will learn: what a pod is, and what the containers in one pod share.
Checked with Kubernetes 1.37 on 31 Oct 2026
The problem
Nasi lemak is rice, sambal and egg. They leave the kitchen together, on one tray. Your web app needs a small helper right beside it, always. Where should the helper go?
Pick one answer.
Watch
kind-dev namespace defaultA pod: A tray of dishes that always go together: one or more containers. is a tray. It holds one or more containers. Kubernetes puts the whole tray on one stall, never half. kubectl apply -f tray.yaml sends the tray to the food court.
Try it
This tray.yaml has one small slip. Press Apply, read the real error, then fix the line.
Fix the manifest, then press Apply.
Hint
unknown field means a word Kubernetes does not know. Check the spelling.Try it
Your turn. Send the tray to the food court. Then check it with kubectl get pods.
kind-dev namespace defaultdev-control-planeOpenManagerNo trays here.
dev-workerOpenNo trays here.
dev-worker2OpenNo trays here.
Hint
Typekubectl apply -f tray.yaml, then kubectl get pods.Watch
kind-dev namespace defaultTwo containers, one tray. READY says 2/2. Look: one IP address, one stall. Inside the tray, they reach each other at localhost.
Predict
You run kubectl delete pod tray. What happens next?
Pick one answer.
Check
Shared by the whole tray, or one per container? Sort them.
Drag a card into a box. Or tap the card, then tap the box.
You did it!
You can now explain what a pod is and what it shares.
Go deeper (optional)
Most pods hold one container. Add a second only when the two truly belong together. Containers can also share files through a volume (World K4).
Real rep (optional): use a throwaway kind cluster, never a work one. Read the context before you delete.
Bahasa Melayu
Nasi lemak ada nasi, sambal dan telur. Semuanya keluar dari dapur bersama, atas satu dulang. Aplikasi web anda perlukan pembantu kecil di sebelahnya, sentiasa. Di mana pembantu itu patut duduk?
Pod (dulang) ialah sedulang hidangan. Ia bawa satu atau lebih container. Kubernetes letak seluruh dulang di satu gerai, tak pernah separuh. kubectl apply -f tray.yaml hantar dulang ke medan selera.
tray.yaml ini ada satu silap kecil. Tekan Apply, baca ralat sebenar, kemudian baiki baris itu.
unknown field maksudnya perkataan yang Kubernetes tak kenal. Semak ejaannya.Giliran anda. Hantar dulang ke medan selera. Kemudian semak dengan kubectl get pods.
kubectl apply -f tray.yaml, kemudian kubectl get pods.Dua container, satu dulang. READY tunjuk 2/2. Lihat: satu alamat IP, satu gerai. Dalam dulang, mereka saling sampai melalui localhost.
Anda jalankan kubectl delete pod tray. Apa jadi lepas itu?
Susun setiap benda. Adakah ia dikongsi seluruh dulang, atau setiap container ada sendiri?
Kini anda boleh terangkan apa itu pod dan apa yang ia kongsi.
You finished this before. Practice is always welcome!
Official docs: Kubernetes: Pods ยท kubectl apply
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?