Search code examples
kubernetesrolling-updates

During rolling updates in kubernetes if users/clients hit then what information will they get? Updated information or previous information?


Suppose I have a deployment in kubernetes, now I want to update the image for that deployment that is why i used rolling updates using kubectl set image deployments/<deployment_name> <new_image_version> command.

As far I understood the rolling updates concepts, during rolling updates the deployment's updates is done by incrementally updating pods instances with new ones, and it happens one by one.

Now my question is, suppose we had 10 pods and during rolling updates 2 pods have updated and rest of the pods are in the updating stage. Now at this situation if users hit to the service then which information will they get?


Solution

  • Both. Some users will get the previous information, some will get the updated information.