Which Kubernetes resource ensures that an instance of a pod runs on every node in the cluster?

Study for the Kubernetes Certified Network Administrator Exam. Our test offers comprehensive flashcards, multiple-choice questions, and detailed explanations. Be confident for your exam!

Multiple Choice

Which Kubernetes resource ensures that an instance of a pod runs on every node in the cluster?

Explanation:
This question checks you know which resource is used to run a pod on every node. A DaemonSet ensures that a copy of a pod runs on all nodes in the cluster (or on all nodes that match a selection). It automatically creates the pod on each new node as it joins, and cleans up when a node leaves. This makes it ideal for node-level agents like log collectors or monitoring daemons that must operate on every node. In contrast, a Deployment or ReplicaSet maintains a desired number of identical pods across the cluster, not per node, so it doesn’t guarantee one pod on each node. A StatefulSet focuses on stable identity and storage for a set of pods, not per-node coverage. So DaemonSet is the correct choice.

This question checks you know which resource is used to run a pod on every node. A DaemonSet ensures that a copy of a pod runs on all nodes in the cluster (or on all nodes that match a selection). It automatically creates the pod on each new node as it joins, and cleans up when a node leaves. This makes it ideal for node-level agents like log collectors or monitoring daemons that must operate on every node.

In contrast, a Deployment or ReplicaSet maintains a desired number of identical pods across the cluster, not per node, so it doesn’t guarantee one pod on each node. A StatefulSet focuses on stable identity and storage for a set of pods, not per-node coverage. So DaemonSet is the correct choice.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy