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

CKA study material · question 483 of 1000

How do kubectl cordon and kubectl drain differ? Choose two.

  1. cordon evicts Pods after a grace period
  2. drain also evicts the Pods already running
  3. cordon marks the node unschedulable without touching its Pods
  4. drain leaves the node schedulable
Show the answer

Answer: C. cordon marks the node unschedulable without touching its Pods
B. drain also evicts the Pods already running

cordon only marks the node; drain both marks it and evicts its Pods.

Source: kubectl Quick Reference (Kubernetes) — Interacting with Nodes and cluster

Challenge yourself on this topic → Study as cards