daniely
daniely

Reputation: 7733

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

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?

Upvotes: 1

Views: 451

Answers (1)

Janos Lenart
Janos Lenart

Reputation: 27140

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.)

Upvotes: 1

Related Questions