Interview Prep/Kubernetes/Scheduling and Pending Pods

A DaemonSet reports `DESIRED 8, CURRENT 6`. Two nodes have no agent Pod.

IntermediateTroubleshootingScheduling and Pending Pods
Answer

Likely causes → Those nodes have taints the DaemonSet does not tolerate (GPU pool, dedicated pool), or the DaemonSet has a nodeSelector/affinity they do not match. DaemonSet Pods only tolerate the built-in not-ready/unreachable/pressure taints automatically.

Diagnose →

kubectl get nodes -o custom-columns=NAME:.metadata.name,TAINTS:.spec.taints
kubectl get ds fluent-bit -n logging -o jsonpath='{.spec.template.spec.tolerations}'

Fix → For agents that must run everywhere (logging, monitoring, CNI), tolerate everything:

tolerations:
  - operator: Exists

Prevent → Compare DaemonSet desiredNumberScheduled with node count in monitoring.

All Kubernetes questions Roadmap: Kubernetes core

More on Scheduling and Pending Pods