BM: Baca dalam Bahasa Melayu
World K2: Trays & Orders
DaemonSets: one per stall
You will learn: how a DaemonSet runs one pod on every node, and why it skips some nodes.
Checked with Kubernetes 1.37 on 31 Oct 2026
The problem
Every stall needs exactly one cleaner. When a new stall opens, it needs one too. Can a Deployment with replicas: 3 promise that?
Pick one answer.
Watch
kind-dev namespace defaultA DaemonSet: One tray on every stall, like a cleaner per stall. New stall, new tray. puts one tray on every stall. Look at the NODE column: one sweeper per worker. A new stall gets its own sweeper by itself.
Predict
This cluster has 3 nodes. Why are there only 2 sweepers?
Pick one answer.
Try it
Your turn. Apply sweeper.yaml. Then run kubectl get daemonset sweeper. DESIRED should say 2.
kind-dev namespace defaultdev-control-planeOpenManagerNo trays here.
dev-workerOpenNo trays here.
dev-worker2OpenNo trays here.
Hint
kubectl get ds is the short form.Try it
A DaemonSet has no replicas. The number of stalls decides. Read the real error, then fix the file.
Fix the manifest, then press Apply.
Check
Deployment or DaemonSet? Sort each job.
Drag a card into a box. Or tap the card, then tap the box.
You did it!
You can now run one pod on every node with a DaemonSet.
Go deeper (optional)
In a kind cluster, kube-proxy and kindnet are DaemonSets in kube-system. They carry a toleration, so they run on the control plane too. A nodeSelector limits a DaemonSet to some stalls only.
Real rep (optional): on a throwaway cluster, run kubectl get daemonsets -n kube-system.
Bahasa Melayu
Setiap gerai perlukan tepat seorang pencuci. Bila gerai baharu dibuka, ia pun perlukan seorang. Bolehkah Deployment dengan replicas: 3 janjikan itu?
DaemonSet letak satu dulang di setiap gerai. Lihat lajur NODE: seorang sweeper setiap worker. Gerai baharu dapat sweeper sendiri secara automatik.
Kluster ini ada 3 node. Kenapa hanya ada 2 sweeper?
Giliran anda. Apply sweeper.yaml. Kemudian jalankan kubectl get daemonset sweeper. DESIRED patut tunjuk 2.
kubectl get ds ialah bentuk pendek.DaemonSet tiada replicas. Bilangan gerai yang tentukan. Baca ralat sebenar, kemudian baiki fail.
Deployment atau DaemonSet? Susun setiap kerja.
Kini anda boleh jalankan satu pod di setiap node dengan DaemonSet.
You finished this before. Practice is always welcome!
Official docs: Kubernetes: DaemonSet · Kubernetes: Taints and tolerations
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?