Run a DaemonSet Across All Nodes
Advanced · 30 minutes · 5 tasks, checked automatically · 100 points
In this advanced lab you will master Kubernetes DaemonSets — the workload type that guarantees exactly one Pod runs on every eligible node in the cluster. You will create a dedicated namespace, deploy a fully-configured DaemonSet with resource limits and a readiness probe, verify its per-node scheduling behaviour, update it via a RollingUpdate strategy, and finally apply node selectors and tolerations to control which nodes receive the Pods. By the end you will have hands-on experience with the core DaemonSet lifecycle used in real-world scenarios such as log collectors, monitoring agents, and network plugins.
What you’ll learn
- Create a namespace and deploy a production-style DaemonSet with resource limits and a readiness probe
- Verify that the DaemonSet schedules exactly one Pod per node and inspect its status fields
- Perform a RollingUpdate on the DaemonSet and then restrict scheduling using node selectors and tolerations
How this lab works
- Start the lab: One click starts a real Kubernetes cluster on your computer (kind), with kubectl ready in a toolbox terminal.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads your live cluster and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Cluster: A real Kubernetes cluster on your computer (kind)
- Kubernetes: 1.34.8
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- A kind cluster created in the Kubernetes Playground
Topics: daemonset, kubernetes, scheduling, node-selector, toleration, rolling-update, headless-service, kind
Create a free account to start this lab.
Keep going
- Zero-Downtime Rolling Updates with maxSurge / maxUnavailable
- Static Pods Managed Directly by the Kubelet
- IndexedJob and Parallel Job Completions in Kubernetes
- Pod Priority and Preemption with PriorityClasses
- Server-Side Apply and Field Management in Kubernetes
- Mutate, Validate, and Generate Resources with Kyverno