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 →
- Use a DaemonSet
- Add tolerations for control-plane and other taints the agent must run on
- Set resource requests and a
priorityClassName: system-node-criticalwhere justified - Use
updateStrategy.rollingUpdate.maxUnavailableto control rollout speed - Verify
kubectl get dsshows 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.
More on Deployments and rollouts
You applied a new image tag and the rollout seems stuck at "1 out of 3 new replicas have been updated". What do you check first?BeginnerHow do you roll back a bad release and verify you are back on the previous version?BeginnerA rollout must never reduce capacity below current replicas. How do you configure the strategy?IntermediateYou need a blue/green deployment without a service mesh. How do you do it with plain Kubernetes?IntermediateHow would you do a canary release with only Deployments and a Service?IntermediateWhat is the difference between Recreate and RollingUpdate strategies and when would you pick Recreate?Beginner