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

maxSurge and maxUnavailable#

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

Contents


More Related Answers

  • max long
  • int max
  • max_value in java
  • use the MAX() function to find the maximum value of a specific column in sql
  • max()
  • return max(max(a,b),max(c,d));
  • max value int8
  • max of values
  • Max Value
  • max()

  • maxSurge and maxUnavailable#

    0

    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
    Tags: whatever
    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.