During a rolling update for Deployments, the total count of surge pods is calculated by adding the desired number of pods (deployment.Spec.Replicas) to maxSurge. During a kubectl rolling update, the total count of surge pods is calculated by adding the original number of pods (oldRc.Spec.Replicas via an annotation) to maxSurge. This commit changes this to use desired replicas.
46 KiB
46 KiB