Chapter 11. DaemonSets Flashcards
What is a DaemonSet ?
A DaemonSet ensures a copy of a Pod is running across a set of nodes in a Kubernetes cluster. DaemonSets are used to deploy system daemons such as log collectors and monitoring agents, which typically must run on every node. DaemonSets share similar functionality with ReplicaSets; both create Pods that are expected to be long-running services and ensure that the desired state and the observed state of the cluster match.
When Shall we use DaemonSet ?
DaemonSets should be used when a single copy of your application must run on all or a subset of the nodes in the cluster.
When shall we use ReplicaSet ?
ReplicaSets should be used when your application is completely decoupled from the node and you can run multiple copies on a given node without special consideration.