KCNA · Question #147
What is the main purpose of a DaemonSet?
The correct answer is A. A DaemonSet ensures that all (or certain) nodes run a copy of a Pod. A DaemonSet ensures that a copy of a specified Pod runs on all (or a selected subset of) nodes in the cluster. As nodes are added to the cluster, pods are automatically added to them; as nodes are removed, those pods are garbage collected. Common use cases include node…
Question
What is the main purpose of a DaemonSet?
Options
- AA DaemonSet ensures that all (or certain) nodes run a copy of a Pod.
- BA DaemonSet ensures that the kubelet is constantly up and running.
- CA DaemonSet ensures that there are as many pods running as specified in the replicas field.
- DA DaemonSet ensures that a process (agent) runs on every node.
How the community answered
(21 responses)- A86% (18)
- B5% (1)
- D10% (2)
Explanation
A DaemonSet ensures that a copy of a specified Pod runs on all (or a selected subset of) nodes in the cluster. As nodes are added to the cluster, pods are automatically added to them; as nodes are removed, those pods are garbage collected. Common use cases include node monitoring agents, log collectors (e.g., Fluentd), and network plugins. Option B (kubelet management) is handled by the system, not DaemonSets. Option C describes a ReplicaSet/Deployment. Option D is close but imprecise - a DaemonSet runs a Pod (which may contain one or more containers/processes), not just a bare process.
Topics
Community Discussion
No community discussion yet for this question.