0
0
Kubernetesdevops~5 mins

DaemonSets for per-node workloads in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a DaemonSet in Kubernetes?
A DaemonSet ensures that a copy of a specific pod runs on all or some nodes in a Kubernetes cluster. It is used for running per-node workloads like monitoring or logging agents.
Click to reveal answer
intermediate
How does a DaemonSet differ from a Deployment in Kubernetes?
A Deployment manages pods that can run anywhere in the cluster and scales by number of replicas, while a DaemonSet runs exactly one pod per selected node, ensuring per-node coverage.
Click to reveal answer
beginner
Which Kubernetes resource would you use to run a logging agent on every node?
You would use a DaemonSet to run a logging agent on every node, because it guarantees one pod per node.
Click to reveal answer
intermediate
What happens to DaemonSet pods when a new node is added to the cluster?
When a new node joins the cluster, the DaemonSet automatically creates a pod on that node to maintain one pod per node.
Click to reveal answer
intermediate
Can you limit a DaemonSet to run pods only on specific nodes?
Yes, by using node selectors or node affinity rules in the DaemonSet specification, you can restrict pods to run only on certain nodes.
Click to reveal answer
What is the primary purpose of a DaemonSet in Kubernetes?
AManage persistent storage
BScale pods based on load
CControl network policies
DRun one pod on every node
If you add a new node to your cluster, what does the DaemonSet do?
ACreates a pod on the new node
BScales pods to zero
CDeletes pods on other nodes
DDoes nothing automatically
How can you restrict a DaemonSet to run pods only on Linux nodes?
AUse nodeSelector with OS label
BUse a Deployment instead
CSet pod replicas to zero
DUse a ConfigMap
Which workload is best suited for a DaemonSet?
ADatabase cluster
BNode monitoring agent
CWeb application with variable scaling
DBatch job
What happens if a node is removed from the cluster?
APods remain running on the removed node
BPods move to other nodes automatically
CDaemonSet pods on that node are deleted
DDaemonSet creates extra pods on remaining nodes
Explain what a DaemonSet is and why it is useful in Kubernetes.
Think about workloads that need to run everywhere in the cluster.
You got /3 concepts.
    Describe how you can control which nodes a DaemonSet runs pods on.
    Consider how Kubernetes matches pods to nodes.
    You got /3 concepts.