What is a Kubernetes DaemonSet?
⚡
Quick Answer
A DaemonSet ensures a copy of a pod runs on every node (or a selected subset), automatically adding pods as nodes join. It is used for node-level agents.
Detailed Answer
Typical uses are log collectors (Fluentd/Filebeat), monitoring agents (node-exporter), CNI networking, and storage daemons — anything that must run once per node. Node selectors/tolerations target specific nodes, and pods are added/removed as the cluster scales. It differs from a Deployment, which schedules a replica count anywhere.
💡
Interview Tip
Give concrete per-node use cases (log/metrics agents, CNI) and contrast with a Deployment replica count.
kubernetesdaemonsetworkloads