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

CKA study material · question 642 of 1000

You need a StatefulSet's Pods to shut down in an orderly, graceful sequence. What is the documented way to achieve that?

  1. Delete the StatefulSet with --cascade=foreground
  2. Set podManagementPolicy to OrderedReady before deleting
  3. Scale the StatefulSet to zero replicas first, then delete it
  4. Delete the Pods in reverse ordinal order by hand
Show the answer

Answer: C. Scale the StatefulSet to zero replicas first, then delete it

Deleting a StatefulSet gives no termination ordering guarantee at all; scaling to zero exercises the ordered shutdown path before the object itself is removed.

Source: StatefulSets (Kubernetes) — Limitations

Challenge yourself on this topic → Study as cards