# What is a DaemonSet used for in Kubernetes?

Kubernetes, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-a-daemonset-used-for-in-kubernetes

- A. To ensure all nodes run a copy of a specific pod
- B. To run batch jobs to completion
- C. To maintain stateful applications
- D. To expose services externally

**Answer:** To ensure all nodes run a copy of a specific pod

**Explanation:** A DaemonSet ensures that all (or some) nodes run a copy of a pod. As nodes are added to the cluster, pods are added to them. As nodes are removed, those pods are garbage collected. This is useful for running cluster-wide services like log collectors, monitoring agents, or storage daemons.
