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

CKA study material · question 643 of 1000

A StatefulSet with 5 replicas has updateStrategy.rollingUpdate.partition set to 3 when its template changes. Which Pods are updated?

  1. web-0, web-1 and web-2
  2. web-3 and web-4
  3. All five, with the first three updated last
  4. None, until the partition is removed
Show the answer

Answer: B. web-3 and web-4

A partition updates only the Pods whose ordinal is at or above its value, which is how a canary is staged on the highest-numbered replicas first.

Source: StatefulSets (Kubernetes) — Update strategies › Partitioned rolling updates

Challenge yourself on this topic → Study as cards