Bird
0
0

How should you configure a DaemonSet to run pods only on Linux nodes and avoid Windows nodes in your Kubernetes cluster?

hard📝 Workflow Q8 of 15
Kubernetes - Scheduling
How should you configure a DaemonSet to run pods only on Linux nodes and avoid Windows nodes in your Kubernetes cluster?
AUse no nodeSelector and add tolerations for Linux nodes only
BUse <code>nodeSelector: kubernetes.io/os: windows</code> with a toleration for Linux nodes
CUse <code>nodeSelector: kubernetes.io/arch: amd64</code> and tolerate Windows taints
DUse <code>nodeSelector: kubernetes.io/os: linux</code> and no tolerations
Step-by-Step Solution
Solution:
  1. Step 1: Identify node OS label

    Linux nodes are labeled kubernetes.io/os=linux.
  2. Step 2: Use nodeSelector

    Setting nodeSelector: kubernetes.io/os: linux restricts pods to Linux nodes.
  3. Step 3: Tolerations

    No special tolerations needed unless nodes have taints.
  4. Final Answer:

    Use nodeSelector: kubernetes.io/os: linux and no tolerations -> Option D
  5. Quick Check:

    nodeSelector filters OS; no tolerations needed [OK]
Quick Trick: Filter Linux nodes with nodeSelector on OS label [OK]
Common Mistakes:
  • Using Windows label to select Linux nodes
  • Adding unnecessary tolerations
  • Ignoring nodeSelector for OS filtering

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes