Study. uk . com
  1. Home
  2. All questions
  3. Question 692

CKA study material · question 692 of 1000

Which sequence does kubectl drain follow?

  1. It evicts the Pods and then cordons the node
  2. It cordons the node and then evicts its Pods
  3. It deletes the Node object and lets the controller recreate it
  4. It taints the node NoExecute and waits for the node controller
Show the answer

Answer: B. It cordons the node and then evicts its Pods

Marking the node unschedulable first stops new Pods arriving while the eviction proceeds, and the evictions respect any PodDisruptionBudget that covers the Pods.

Source: Safely Drain a Node (Kubernetes) — Use kubectl drain to remove a node from service

Challenge yourself on this topic → Study as cards