QuestionQ275

VerifiedKubernetes Fundamentals

A DevOps engineer is getting worker-1 ready for maintenance. The node runs multiple Pods, but its workloads must be safely evicted and rescheduled to other nodes. Which kubectl command should the engineer run?

Explanation

kubectl drain worker-1 --ignore-daemonsets marks worker-1 unschedulable and evicts eligible Pods so their controllers can reschedule them elsewhere. The --ignore-daemonsets flag allows the drain to proceed when DaemonSet-managed Pods exist; those Pods are left in place because DaemonSets would immediately replace them.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!