Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Controlling the Rollout Rate

Sumit Rawal answered on June 17, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers


Controlling the Rollout Rate

0

maxSurge and maxUnavailable

maxSurge and maxUnavailable

In this case, we only have two replicas, so rolling out a new version doesn’t take too long. But imagine if we had, say, 100 replicas running, and we wanted to roll out a new version in the same way. We’d have to add one new pod with the new version, wait until it’s ready, and then remove one pod with the old version. It would take forever!

There are two properties we can use to define how fast our rollout will happen: maxSurge and maxUnavailable.

The maxSurge property will define how many pods we can have exceeding our desired replica count, which is specified in the deployment manifest. maxUnavailable defines how many pods we can have below this count. These properties can be defined as an absolute number (for example, 10) or as a percentage (for example, 20%). The default value for both is 25%. Here’s an example of how that would work, assuming a Deployment with 3 replicas and a maxSurge and maxUnavailable of 1 .

maxSurge and maxUnavailable deployment

Kubernetes will ensure that during this rollout we will have a minimum of 2 (desired - maxUnavailable) and maximum of 4 (desired + maxSurge) replicas.

We can change the default value for these properties in our manifest: 

Popularity 1/10 Helpfulness 1/10 Language whatever
Source: Grepper
Link to this answer
Share Copy Link
Contributed on Jun 17 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.