DELAPARRA
Index
Color
NL
Category: Kubernetes

DaemonSet

Explained by Updated

What is DaemonSet?

DaemonSet: Runs exactly one copy of a Pod on every node (or a subset). Used for node-level agents — log collectors, metrics exporters, CNI plugins. A DaemonSet runs one copy of a pod on every node in a Kubernetes cluster, or on a chosen subset. When a node is added, the pod is started there automatically.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about DaemonSet

How is DaemonSet used in practice?

It is meant for agents that work per machine rather than per application. Log collectors that read every container's output, metrics exporters that report node CPU and disk usage, and network or storage plugins are typical examples.

What should you keep in mind with DaemonSet?

You rarely write DaemonSets for your own application. Most come with tools you install, such as a monitoring stack. Because they run on every node, their resource requests add up quickly across a cluster. Set sensible CPU and memory limits, and check what DaemonSets a managed cluster already runs before adding more of your own.

What does an example of DaemonSet look like?

apiVersion: apps/v1 kind: DaemonSet metadata: name: log-agent spec: selector: matchLabels: { app: log-agent } template: metadata: labels: { app: log-agent } spec: containers: - name: agent image: fluent-bit:3.1

At a glance

CategoryKubernetes
Explained by
Updated

More Kubernetes terms

All terms starting with D

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.