BM: Baca dalam Bahasa Melayu
World K9: Cluster Admin
The kubelet: systemctl and journalctl
You will learn: how to check, restart and read the kubelet from inside a node.
Checked with Kubernetes 1.37 on 1 Nov 2026
The problem
A machine rebooted at 3 a.m. Soon its stall was Ready again. Nobody typed a thing. Who started its supervisor, the kubelet?
Pick one answer.
Watch
kind-dev namespace defaultThat service manager is systemd: The building's power room: it starts services like the kubelet at boot and restarts them if they crash., the machine’s power room. systemctl status kubelet asks it: is the supervisor on duty, and since when?
Try it
Read it like an admin. Tap two lines: “starts at boot” and “runs now”.
Tap the 2 lines that matter most.
0 of 2 found
Hint
Look for the words enabled and running.Try it
After a kubelet setting changes, you restart it. Type ssh dev-worker, then systemctl restart kubelet. Then read its journal: The supervisor's diary: log lines systemd keeps for each service. Read it with journalctl.: journalctl -u kubelet -n 5 --no-pager. Careful: a restart changes the node.
kind-dev namespace defaultdev-control-planeOpenManagerNo trays here.
dev-workerOpen- shop·7fm98
- shop·l72qr
dev-worker2Open- shop·h9k94
Hint
A restart is a short stop and a start. The node stays Ready.Try it
Build the command for the kubelet’s last 20 diary lines.
Tap the pieces in the right order.
Hint
Start with journalctl, then the unit, then how many lines.Predict
You stop the kubelet on dev-worker. What happens to its trays right away?
Pick one answer.
Check
Does it only look, or does it change the stall? Sort the commands.
Drag a card into a box. Or tap the card, then tap the box.
Hint
Status, is-active and journalctl never change anything.You did it!
You can now check, restart and read the kubelet.
Go deeper (optional)
cat /etc/systemd/system/kubelet.service shows Restart=always: if the kubelet crashes, systemd starts it again. A planned systemctl stop stays stopped. journalctl -u kubelet -f follows new lines live; press Ctrl+C to leave.
Real mission
kubectl config current-contextdocker exec dev-worker systemctl status kubelet --no-pagerdocker exec dev-worker journalctl -u kubelet -n 20 --no-pagerdocker exec dev-worker systemctl cat kubelet
0 of 4 steps done · Your ticks are saved.
Bahasa Melayu
Satu mesin but semula pukul 3 pagi. Tak lama kemudian gerainya Ready semula. Tiada siapa taip apa-apa. Siapa hidupkan penyelianya, kubelet?
Pengurus servis itu ialah systemd, bilik kuasa mesin. systemctl status kubelet tanya ia: penyelia sedang bertugas, dan sejak bila?
Baca macam pentadbir. Tekan dua baris: “hidup semasa but” dan “berjalan sekarang”.
Selepas tetapan kubelet berubah, anda mulakan semula. Taip ssh dev-worker, kemudian systemctl restart kubelet. Kemudian baca journal (diari): journalctl -u kubelet -n 5 --no-pager. Hati-hati: restart mengubah node.
Bina arahan untuk 20 baris terakhir diari kubelet.
Anda hentikan kubelet di dev-worker. Apa jadi pada dulangnya serta-merta?
Arahan ini cuma melihat, atau mengubah gerai? Susun.
Kini anda boleh semak, mulakan semula dan baca kubelet.
You finished this before. Practice is always welcome!
Official docs: kubelet · Troubleshooting clusters · systemctl (systemd) · journalctl (systemd)
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?