BM: Baca dalam Bahasa Melayu
World K7: Self-Driving
Promote with pull requests
You will learn: how one image moves from staging to production with a reviewed pull request.
Checked with Kubernetes 1.37 on 31 Oct 2026
The problem
Shop 1.5.0 ran fine on staging all day. Now production should get it. What is the GitOps way?
Pick one answer.
Watch
Tap each point on the timeline.
One image, two folders. To promote: Move the same tested build on to the next environment, like from staging to production. is to move the same image to the next environment.
Try it
Mei opened the promotion PR. Rules say it needs one approval. Review it, then merge.
- Mmei
Staging ran 1.5.0 for a day. No errors.
Same image, now for prod.
- Passed kustomize build
- This branch needs one approving review first.
Hint
Approve the PR first. Then merge it.Try it
Put a safe promotion in order.
First step at the top. Put these in order. Use the arrows, or drag.
- A teammate approves it
- Staging runs the new tag
- Open a PR for the prod folder
- Checks on staging pass
- Merge: Argo CD syncs prod
Predict
Prod breaks right after the merge. What is the fastest safe undo?
Pick one answer.
Check
Some settings differ per environment. Others stay the same in the shared base. Sort them.
Drag a card into a box. Or tap the card, then tap the box.
You did it!
You can now promote one image between environments with a pull request.
Go deeper (optional)
Prefer one folder per environment over one branch per environment. Folders are easy to compare and never need merging back. Some teams automate promotion with tools like Kargo. Real rep (optional): make envs/staging and envs/prod overlays for Kedai Kancil. Run kubectl kustomize envs/prod to see the result.
Bahasa Melayu
Shop 1.5.0 berjalan lancar di staging sepanjang hari. Sekarang production pula patut dapat. Apa cara GitOps?
Satu image, dua folder. Promote (naikkan) bermaksud hantar image yang sama ke persekitaran seterusnya.
Mei buka PR untuk naikkan versi. Peraturan kata ia perlu satu kelulusan. Semak, kemudian merge.
Susun langkah naikkan versi yang selamat.
Prod rosak sejurus selepas merge. Apa cara undur paling pantas dan selamat?
Sesetengah tetapan berbeza ikut persekitaran. Yang lain kekal sama dalam base kongsi. Susun semuanya.
Kini anda boleh naikkan satu image antara persekitaran dengan pull request.
You finished this before. Practice is always welcome!
Official docs: Kustomize: images ยท Argo CD: best practices (separate config repo) ยท About pull request reviews
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?