BM: Baca dalam Bahasa Melayu
World K1: The Food Court
Zones: namespaces
You will learn: how namespaces split one cluster into zones.
Checked with Kubernetes 1.37 on 31 Oct 2026
The problem
Two teams both want a pod called web, in one cluster. Will the names clash?
Pick one answer.
Watch
kind-dev namespace defaultA namespace: One zone of the food court: a separate space inside the cluster. is one zone of the food court. Here, default and food each have a pod called web. No clash.
Try it
Open a new zone for the drinks team. Type kubectl create namespace drinks.
kind-dev namespace defaultdev-control-planeOpenManagerNo trays here.
dev-workerOpen- web
dev-worker2OpenNo trays here.
Predict
You type kubectl get pods. Which zone’s pods do you see?
Pick one answer.
Try it
Look inside the food zone: kubectl get pods -n food. Then try -A to see every zone at once.
kind-dev namespace defaultdev-control-planeOpenManagerNo trays here.
dev-workerOpen- web
dev-worker2Open- web
Hint
-n means namespace. -A means all of them.Check
Does it live inside a zone, or across the whole food court?
Drag a card into a box. Or tap the card, then tap the box.
You did it!
You can now split a cluster into zones and look inside each one.
Go deeper (optional)
kubectl config set-context --current --namespace=food makes food your default zone. The pink bar shows it. Careful: kubectl delete namespace food deletes everything inside it. Zones keep names apart, not traffic. NetworkPolicies, in World K3, do that.
Real rep (optional): on your kind cluster, kubectl get namespaces shows the zones kind made for you.
Bahasa Melayu
Dua pasukan mahu pod bernama web, dalam satu kluster. Adakah nama itu akan bertembung?
Namespace (zon) ialah satu zon dalam medan selera. Di sini, default dan food masing-masing ada pod bernama web. Tiada pertembungan.
Buka zon baharu untuk pasukan minuman. Taip kubectl create namespace drinks.
Anda taip kubectl get pods. Pod zon mana yang anda nampak?
Tengok dalam zon food: kubectl get pods -n food. Kemudian cuba -A untuk lihat semua zon sekali gus.
-n bermaksud namespace. -A bermaksud semuanya.Ia tinggal dalam satu zon, atau merentasi seluruh medan selera?
Kini anda boleh bahagikan kluster kepada zon dan tengok dalam setiap satu.
You finished this before. Practice is always welcome!
Official docs: Namespaces · kubectl create namespace
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?