DaemonSets
Learn DaemonSets for running one Pod per node for agents, log collectors, networking, monitoring, and security tooling.
Last reviewed: June 2026
🔍 What Is It?
A DaemonSet is a workload controller for node-level agents.
It is commonly used for logging agents, monitoring agents, CNI components, security scanners, and storage plugins.
🎯 Why Do We Need It?
Some workloads must run on every node or every node in a selected group to collect logs, expose metrics, enforce policy, or provide infrastructure functions.
Common developer mistakes:
- →Treating Kubernetes YAML as copy-paste configuration instead of production architecture
- →Ignoring requests, limits, health probes, security context, and rollout behavior
- →Debugging only the Pod while forgetting Services, DNS, NetworkPolicies, nodes, and admission controls
- →Manually changing live objects without updating Git or infrastructure automation
🏗️ What Happens in Real Projects?
A platform team deploys a log collector DaemonSet across all worker nodes. Each Pod mounts host log directories, ships logs to a central platform, and runs with carefully reviewed permissions.
⚙️ How It Works
The DaemonSet controller creates Pods on matching nodes. When new nodes join, DaemonSet Pods are created there. Node selectors, affinity, tolerations, and taints determine placement.
💻 Example
DaemonSet placement — Node-wide log agent pattern.
🤔 Common Confusions
❓ Is DaemonSet for scaling APIs?
No. Use Deployments for replicated application services.
❓ Does DaemonSet run on control-plane nodes?
Only if selectors/tolerations allow it and the platform permits it.
❓ Can DaemonSets be risky?
Yes. They often need node-level permissions, so security review matters.
🚨 Common Production Issues
**Privileged agents** increase node compromise risk.
**No tolerations** prevents agents from running on tainted nodes where needed.
**Resource-heavy agents** reduce workload capacity on every node.
**Bad DaemonSet rollout** affects the whole cluster quickly.
✅ Best Practices
Use least privilege for node agents
Set resource requests and limits
Use tolerations and node selectors intentionally
Roll out platform DaemonSets carefully
Monitor agent health per node
🏛️ Architect's Note
DaemonSets are platform infrastructure. One bad DaemonSet can impact every node, so treat them as high-blast-radius changes.
💬 Frequently Asked Questions
🎯 Key Takeaways
🔗 Related Topics
🎯 Practice this topic in interviews
↗ Where this topic fits
Kubernetes Technology Guide
Return to the Kubernetes learning hub.
Cloud Engineer Career Path
A practical route through cloud fundamentals, AWS services, containers, delivery, and architecture-focused interview preparation.
DevOps Engineer Career Path
A structured route through automation, container delivery, platform operations, production support, and interview preparation.
Sources
Sources / References
Use these Kubernetes references to verify the concept in official docs and continue into the most relevant SplashRide pages.
Official documentation
Related SplashRide pages
SplashRide Kubernetes learning path
Browse the full Kubernetes topic collection and learning order on SplashRide.
Kubernetes Interview Prep
Practice Kubernetes interview questions and scenario-based answers.
Cloud Engineer Career Path
A practical route through cloud fundamentals, AWS services, containers, delivery, and architecture-focused interview preparation.
DevOps Engineer Career Path
A structured route through automation, container delivery, platform operations, production support, and interview preparation.
Worker Nodes
Learn Kubernetes worker nodes, kubelet, container runtime, node pools, taints, capacity, upgrades, and production operations.
Pod Security
Understand Pod Security controls, securityContext, privileged containers, root users, capabilities, host access, and admission policy.