# Daemon Service

> Run pod copies on every node using DaemonSets

- **Category**: Cloud
- **Subcategory**: Behavioral
- **Canonical URL**: https://designpattern.fyi/patterns/k8s_daemon_service/

---

## Description
The Daemon Service pattern uses DaemonSets to ensure that a pod runs on every node in a cluster. This is ideal for system-level services like logging agents, monitoring agents, or storage plugins that need to run on each node. DaemonSets automatically add pods to new nodes and remove them when nodes are removed.


## Use Cases
Use when you need to run a service on every node or when deploying cluster-wide agents and daemons.





## Trade-offs


### Advantages

- Automatic deployment to all nodes

- Simplifies cluster-wide service management

- Scales automatically with node count

- Ideal for infrastructure services




### Considerations & Drawbacks

- Can consume significant resources at scale

- Not suitable for application workloads

- Potential resource contention







---
**Reference**: [Original Source](https://github.com/k8spatterns/examples/tree/master/behavioral/DaemonService)

