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

CKA study material · question 909 of 1000

Why do PodDisruptionBudgets take effect during a kubectl drain?

  1. Because drain deletes Pods, and deletion checks budgets
  2. Because drain cordons the node first
  3. Because drain uses the eviction API where the server supports it
  4. Because drain runs the Pods' preStop hooks
Show the answer

Answer: C. Because drain uses the eviction API where the server supports it

Evictions are policy-checked and consult disruption budgets; drain falls back to a plain delete where eviction is unsupported, and a plain delete does not check budgets.

Source: kubectl drain (Kubernetes) — Synopsis

Challenge yourself on this topic → Study as cards