How does maxSurge and maxUnavailable work for canary strategy? #2237
-
Hello, I am using canary strategy for an application with following config.
Based on this documentation, I expected the following behavior.
But what I am missing is the previous stable version pods does not terminate during the canary process. It waits for all the canary pods to be successfully created, makes the canary release as stable and then scales down all previous version pods. So, during deployment, it takes double the resources (6 pods) at one stage. Is this the default behavior? Or should I change any configuration to meet my expected scenario? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Are you using a traffic router or is this a basic canary? |
Beta Was this translation helpful? Give feedback.
-
It's currently expected that maxSurge and maxUnavailable do not work when used with traffic routing. The reason for this is explained here: #2239 (comment) |
Beta Was this translation helpful? Give feedback.
It's currently expected that maxSurge and maxUnavailable do not work when used with traffic routing. The reason for this is explained here: #2239 (comment)