CS FundamentalsVery hardProduct-company DevOps interview

A Kubernetes Deployment has 10 replicas and a rolling-update strategy with maxSurge = 25% and maxUnavailable = 25%. Kubernetes rounds maxSurge up and maxUnavailable down. During the rollout, what are the most pods that can exist and the fewest that must stay available?

  1. A. 13 pods at most, at least 8 available
  2. B. 12 pods at most, at least 7 available
  3. C. 13 pods at most, at least 7 available
  4. D. 12 pods at most, at least 8 available

Correct answer: A. 13 pods at most, at least 8 available

25% of 10 = 2.5: maxSurge rounds up to 3 (10 + 3 = 13 pods) and maxUnavailable rounds down to 2 (10 - 2 = 8 available). Rounding the other way gives the distractors; the asymmetry errs on the side of availability.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic