Hello, I’ve found something in the documentation which I’d like to understand.
As I understand it: if you change the the “replicas” value on a deployment it automatically creates new containers or drops old containers as required. There is an example of this at Run a Stateless Application Using a Deployment | Kubernetes where increasing the replica count creates new pods.
However at Deployments | Kubernetes it says:
Note: A Deployment’s rollout is triggered if and only if the Deployment’s Pod template (that is,
.spec.template
) is changed, for example if the labels or container images of the template are updated. Other updates, such as scaling the Deployment, do not trigger a rollout.
This suggests the opposite.
Perhaps I don’t fully understand what’s meant by “trigger a rollout” in this context. Is a “rollout” only when all the old containers are replaced by fresh ones?
Many thanks,
Brian.