BM: Baca dalam Bahasa Melayu
World K9: Cluster Admin
Certificates and when they expire
You will learn: to read when the office's ID cards expire, and to renew them before they do.
Checked with Kubernetes 1.37 on 1 Nov 2026
The problem
A kubeadm cluster ran fine for a year. This morning the office stops talking. Nobody changed anything. What is a likely cause?
Pick one answer.
Watch
kind-dev namespace defaultEvery part shows an ID card to the others. Each card has a certificate expiry: The day an ID card stops working. kubeadm's other certificates last one year. date. kubeadm certs check-expiration lists them all.
Try it
The last table lists the signers. Tap the lines that last 9 years.
Tap every signer that lasts 9 years.
0 of 3 found
A signs every card. kubeadm makes its CAs last ten years.
Predict
You run kubeadm certs renew all. It says “renewed” for each card. Yet the API server still shows the old one. Why?
Pick one answer.
Try it
Renew the API server’s card, then check the dates again. Renewing changes the office, so the danger note shows.
kind-dev namespace defaultdev-control-planeOpenManagerNo trays here.
dev-workerOpenNo trays here.
dev-worker2OpenNo trays here.
Hint
Open the control-plane node first. Then renew, then check.Check
Put a renewal day in order.
First step at the top. Put these in order. Use the arrows, or drag.
- kubeadm certs check-expiration
- Copy the new admin.conf to ~/.kube/config
- Restart the control-plane pods: move each manifest out, wait 20 s, move it back
- kubeadm certs renew all
Check
Who keeps each card fresh? Sort them.
Drag a card into a box. Or tap the card, then tap the box.
You did it!
You can now read certificate expiry dates and renew in time.
Go deeper (optional)
kubeadm upgrade renews the certificates too. So a yearly upgrade keeps the cards fresh. Many teams also set an alarm a month before the date.
Real mission
docker exec <cluster>-control-plane kubeadm certs check-expirationdocker exec <cluster>-control-plane kubeadm certs renew apiserverdocker exec <cluster>-control-plane kubeadm certs check-expiration
0 of 3 steps done · Your ticks are saved.
Bahasa Melayu
Satu kluster kubeadm berjalan lancar selama setahun. Pagi ini pejabat berhenti berhubung. Tiada siapa ubah apa-apa. Apa punca yang mungkin?
Setiap bahagian tunjuk kad pengenalan kepada yang lain. Setiap kad ada tarikh certificate expiry (luput). kubeadm certs check-expiration senaraikan semuanya.
Jadual terakhir senaraikan penandatangan. Ketik baris yang tahan 9 tahun.
Certificate authority (CA) tandatangan setiap kad. kubeadm buat CA-nya tahan sepuluh tahun.
Anda jalankan kubeadm certs renew all. Ia kata “renewed” untuk setiap kad. Tapi API server masih tunjuk kad lama. Kenapa?
Baharui kad API server, kemudian semak tarikh semula. Renew ubah pejabat, jadi nota bahaya muncul.
Susun hari membaharui sijil ikut urutan.
Siapa yang pastikan setiap kad sentiasa baharu? Susun ikut kumpulan.
Kini anda boleh baca tarikh luput sijil dan baharuinya tepat pada masa.
You finished this before. Practice is always welcome!
Official docs: Kubernetes: certificate management with kubeadm · Kubernetes: PKI certificates and requirements · kubeadm certs
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?