BM: Baca dalam Bahasa Melayu
World K4: Notes, Lockers & Packages · Boss challenge
Same app, three kitchens
You will learn: to run one app in dev, staging and prod, each with its own settings and trays.
Checked with Kubernetes 1.37 on 31 Oct 2026
The problem
kind-dev namespace defaultBoss: one shop, three kitchens. Dev: 1 tray, debug logs. Staging: 2 trays, info. Prod: 3 trays, warn. One base, three sticky notes. Open them all.
Try it
Kitchen 1: dev. Preview it, then open it.
kind-dev namespace defaultdev-control-planeOpenManagerNo trays here.
dev-workerOpenNo trays here.
dev-worker2OpenNo trays here.
Hint
A preview never changes the cluster. Thenapply -k does.Try it
Kitchen 2 has a problem. A teammate added a cache switch to staging’s note. The API server refuses it. Fix the note.
Fix the manifest, then press Apply.
Try it
Your fix is in the files now. Open staging, then prod.
kind-dev namespace defaultdev-control-planeOpenManagerNo trays here.
dev-workerOpenNo trays here.
dev-worker2OpenNo trays here.
Check
The base says LOG_LEVEL: debug. Staging’s note says info. What does a staging tray print for printenv LOG_LEVEL?
Pick one answer.
Check
kind-dev namespace defaultThree zones, three orders: 1, 2 and 3 trays. Staging read your fixed note: true.
Try it
Before any work on prod, make prod your “you are here” zone. Then list its trays.
kind-dev namespace defaultdev-control-planeOpenManagerNo trays here.
dev-workerOpenNo trays here.
dev-worker2OpenNo trays here.
Hint
Watch the pink bar at the top change.Check
Safe move or risky? Swipe each one.
Swipe right for good, left for needs work. Or use the buttons.
Preview with kubectl kustomize before apply -k.
You did it!
You can now run one app in three kitchens, each its own way.
Go deeper (optional)
Real teams keep these folders in Git. A change to overlays/prod goes through a pull request. In World K7, a GitOps tool applies it for you.
Real rep (optional), on a practice kind cluster:
Real mission
kubectl apply -k overlays/devkubectl apply -k overlays/stagingkubectl apply -k overlays/prodkubectl get deployments -A -l app=shopkubectl delete -k overlays/prod
0 of 6 steps done · Your ticks are saved.
Bahasa Melayu
Bos: satu kedai, tiga dapur. Dev: 1 dulang, log debug. Staging: 2 dulang, info. Prod: 3 dulang, warn. Satu base, tiga nota lekat. Buka semuanya.
Dapur 1: dev. Pratonton dahulu, kemudian buka.
apply -k yang ubah.Dapur 2 ada masalah. Rakan sepasukan tambah suis cache pada nota staging. API server menolaknya. Baiki nota itu.
Pembaikan anda sudah ada dalam fail. Buka staging, kemudian prod.
Base kata LOG_LEVEL: debug. Nota staging kata info. Apa dulang staging cetak untuk printenv LOG_LEVEL?
Tiga zon, tiga pesanan: 1, 2 dan 3 dulang. Staging baca nota yang anda baiki: true.
Sebelum buat apa-apa pada prod, jadikan prod zon “anda di sini”. Kemudian senaraikan dulangnya.
Langkah selamat atau berisiko? Leret setiap satu.
Kini anda boleh jalankan satu aplikasi di tiga dapur, ikut cara masing-masing.
You finished this before. Practice is always welcome!
Official docs: Declarative management with Kustomize · Kubernetes: ConfigMaps · Namespaces
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?