How does 'kubectl apply -f' update a deployment behind the scenes?

8/30/2017

I have a deployment created with a YAML file, the image for the containers is image:v1.

Now I update the file to image:v2, and do kubectl apply -f newDeploymentFile.yml. Does Kubernetes use rolling update behind the scenes to update my deployment or some other way?

-- daniely
kubernetes

1 Answer

8/30/2017

What happens exactly is controlled by the Deployment itself:

(I assumed that by deployment you actually mean a Deployment type object and not speaking in general.)

-- Janos Lenart
Source: StackOverflow