How do you safely drain a node for maintenance without dropping any active connections?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: kubectl drain <node-name> --ignore-daemonsets

The 'kubectl drain' command safely evicts all of your pods from a node before you perform maintenance. You usually need '--ignore-daemonsets' to bypass system pods that are require...

Real Exam ScenarioKubernetes Administration

How do you safely drain a node for maintenance without dropping any active connections?

✓ Correct Answer & ExplanationKubernetes Administration

Correct Answer

kubectl drain <node-name> --ignore-daemonsets

Why This Answer Is Correct

The 'kubectl drain' command safely evicts all of your pods from a node before you perform maintenance. You usually need '--ignore-daemonsets' to bypass system pods that are required to run on every node.

📚 What This Question Tests

This question evaluates your knowledge of Kubernetes Administration — a core concept tested in cloud certification exams. Understanding Kubernetes Administration is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.