I would like to understand the Deployment controller’s behavior when scaling up and changing the container image in the same release.
In a RollingUpdate Deployment, we changed the desired replica count from 1 to 2 while updating the image from v1 to v2. During the rollout, we observed an additional old-version Pod being created, even though that version was about to be replaced.
The release was applied through Argo CD using Helm-rendered manifests. We have not yet verified whether the API server received the image and replica changes in a single update or whether reconciliation produced multiple updates, so I am not claiming this is a Kubernetes bug or presenting a confirmed minimal reproduction.
I am aware of the documented proportional-scaling behavior, which spreads additional replicas across active ReplicaSets during a rollout to mitigate risk:
My questions are:
- Is scaling up the old ReplicaSet expected when the Pod template and replica count change in a single Deployment update, or does it indicate that scaling and the image update were processed separately?
- Could additional replicas preferentially use the new Pod template while still satisfying maxUnavailable and maxSurge? What availability or rollout risks does the existing behavior protect against?
- Is there an existing configuration or design discussion about reducing this short-lived old-version Pod creation? For slow-starting or resource-heavy applications, pulling and initializing an old image that is immediately retired can add noticeable resource use and rollout time.
- Which Deployment/ReplicaSet events or controller details would best distinguish proportional scaling from separate GitOps updates?
I am asking about the design tradeoff and how to collect a useful minimal reproduction before opening an enhancement issue. Thank you.