Challenge - 5 Problems
DaemonSet Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
Output of DaemonSet Pod Distribution
You have a DaemonSet running on a Kubernetes cluster with 3 nodes. After running
kubectl get pods -o wide, how many pods will you see for this DaemonSet?Attempts:
2 left
💡 Hint
DaemonSets ensure one pod per node unless node selectors or taints prevent scheduling.
✗ Incorrect
A DaemonSet creates exactly one pod on each node in the cluster (unless restricted by node selectors or taints). So with 3 nodes, you get 3 pods.
🧠 Conceptual
intermediate1:00remaining
Purpose of DaemonSets
What is the main purpose of using a DaemonSet in Kubernetes?
Attempts:
2 left
💡 Hint
Think about tasks that need to run on all nodes, like monitoring or logging.
✗ Incorrect
DaemonSets are designed to run one pod on each node to perform node-specific tasks such as monitoring, logging, or networking.
❓ Troubleshoot
advanced2:00remaining
DaemonSet Pods Not Running on New Nodes
You added two new nodes to your Kubernetes cluster, but the DaemonSet pods are not appearing on these new nodes. What is the most likely cause?
Attempts:
2 left
💡 Hint
Check node taints and tolerations for DaemonSet pods.
✗ Incorrect
If new nodes have taints that the DaemonSet pods do not tolerate, pods will not be scheduled on those nodes.
❓ Configuration
advanced2:00remaining
DaemonSet Node Selector Configuration
You want your DaemonSet pods to run only on nodes labeled
disk=ssd. Which snippet correctly configures this in the DaemonSet spec?Attempts:
2 left
💡 Hint
Node selectors use key-value pairs to filter nodes.
✗ Incorrect
The nodeSelector field uses key-value pairs to select nodes. Option B correctly uses the label key and value.
✅ Best Practice
expert2:30remaining
Best Practice for Updating DaemonSet Pods
You need to update the container image of a DaemonSet without downtime. Which strategy is best to achieve this?
Attempts:
2 left
💡 Hint
DaemonSets support rolling updates to minimize downtime.
✗ Incorrect
The rolling update strategy allows updating pods gradually, controlling how many pods can be unavailable during the update.