BM: Baca dalam Bahasa Melayu
World K9: Cluster Admin
Upgrade with kubeadm, one minor at a time
You will learn: the safe order of a kubeadm upgrade, office first, then one stall at a time.
Checked with Kubernetes 1.37 on 1 Nov 2026
The problem
Your kubeadm cluster runs 1.36. Kubernetes 1.37 is out. Which part do you upgrade first?
Pick one answer.
Watch
kind-dev namespace defaultThe office’s version lives in its static pod files. A kubeadm upgrade: Renovating the building: the office first, then one stall at a time, one minor version per step. writes new image tags there. One minor version per step.
Try it
Put the office’s upgrade in order, like the official kubeadm steps.
First step at the top. Put these in order. Use the arrows, or drag.
- Install the new kubelet and kubectl, restart the kubelet
- Install the new kubeadm (1.37.x)
- kubectl drain the control-plane node
- sudo kubeadm upgrade apply v1.37.x
- kubectl uncordon the control-plane node
- sudo kubeadm upgrade plan
Hint
kubeadm upgrades the office. The kubelet is a separate package, so it comes after.Predict
Look before you change. What does sudo kubeadm upgrade plan do?
Pick one answer.
Try it
Your practice office runs v1.37.0. Build the command that moves it to the patch v1.37.2.
Tap the pieces in the right order.
apply rewrites the office. Danger: take an etcd snapshot before it.
Try it
Now one stall. Drain dev-worker, restart its kubelet, then open it. Pretend the new packages are in.
kind-dev namespace defaultdev-control-planeOpenManagerNo trays here.
dev-workerOpen- shop·bww25
- shop·s2gw9
dev-worker2Open- shop·cnnkz
Hint
Drain, thenssh dev-worker. Restart the kubelet, exit, then uncordon.Check
Upgrade night habits. Good idea, or needs work?
Swipe right for good, left for needs work. Or use the buttons.
Take an etcd snapshot before the upgrade
You did it!
You can now plan a kubeadm upgrade, one stall at a time.
Go deeper (optional)
Other control-plane nodes and the workers run sudo kubeadm upgrade node instead of apply. kubeadm also renews its certificates on upgrade. It keeps backups under /etc/kubernetes/tmp. Our practice terminal shows a real kubeadm upgrade plan on dev-control-plane. It was recorded on a kind cluster. It can’t run apply.
Real mission
kubectl get nodeskubeadm version -o shortsudo kubeadm upgrade plan
0 of 3 steps done · Your ticks are saved.
Bahasa Melayu
Kluster kubeadm anda guna 1.36. Kubernetes 1.37 sudah keluar. Bahagian mana anda naik taraf dulu?
Versi pejabat disimpan dalam fail static pod-nya. kubeadm upgrade tulis tag image baharu di situ. Satu versi minor setiap langkah.
Susun naik taraf pejabat, ikut langkah rasmi kubeadm.
Lihat sebelum ubah. Apa yang sudo kubeadm upgrade plan buat?
Pejabat latihan anda guna v1.37.0. Bina arahan yang bawanya ke patch v1.37.2.
apply tulis semula pejabat. Bahaya: ambil snapshot etcd sebelum itu.
Sekarang satu gerai. Drain dev-worker, mulakan semula kubelet-nya, kemudian buka. Anggap pakej baharu sudah dipasang.
ssh dev-worker. Mulakan semula kubelet, exit, kemudian uncordon.Tabiat malam naik taraf. Idea baik, atau perlu dibaiki?
Kini anda boleh rancang naik taraf kubeadm, satu gerai demi satu.
You finished this before. Practice is always welcome!
Official docs: Kubernetes: upgrading kubeadm clusters · Kubernetes: upgrading Linux nodes · kubeadm upgrade · Kubernetes: version skew policy
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?