Interview Prep/Kubernetes/Deployments and rollouts

Your team needs one pod on every node for log collection. Which object and what do you watch for?

BeginnerScenarioDeployments and rollouts
Answer

Situation read → You must ship node logs, including from tainted nodes.

What I'd do →

  1. Use a DaemonSet
  2. Add tolerations for control-plane and other taints the agent must run on
  3. Set resource requests and a priorityClassName: system-node-critical where justified
  4. Use updateStrategy.rollingUpdate.maxUnavailable to control rollout speed
  5. Verify kubectl get ds shows DESIRED equals READY

Why → DaemonSet pods are scheduled one per matching node, and taints silently exclude nodes unless tolerated.

Interview tip → Mention that agents without requests can get evicted first under pressure.

All Kubernetes questions Roadmap: Kubernetes core

More on Deployments and rollouts