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

CKA study material · question 644 of 1000

A StatefulSet has updateStrategy.type set to OnDelete and its Pod template is changed. What happens?

  1. All Pods are recreated in reverse ordinal order
  2. The highest-ordinal Pod is updated and the rollout pauses
  3. The change is rejected until the strategy is switched to RollingUpdate
  4. Nothing, until each Pod is deleted manually
Show the answer

Answer: D. Nothing, until each Pod is deleted manually

With OnDelete the controller does not act on template changes at all; each Pod picks up the new template only when someone deletes it.

Source: StatefulSets (Kubernetes) — Update strategies

Challenge yourself on this topic → Study as cards