Back to questions
JuniorTheoryVery common
While this Deployment of 4 replicas updates, how many Pods may exist and how many must stay available?
spec:
replicas: 4
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0At most 5, at least 4
- Reading
maxUnavailable: 0as no limit, when it means no replica may be missing - Thinking
maxSurgecounts Pods replaced at once rather than Pods allowed abovereplicas
- Why can a rollout with
maxUnavailable: 0stall when no node has room for the extra Pod? - How are percentages such as
maxSurge: 25%rounded?