From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Deployment updates

Deployment updates

- Let's talk about deployment updates. Deployments make updating applications easier. To manage how applications are updated, an update strategy is used and the default strategy is rolling update. Set a strategy type rolling update in the deployment spec. This ensures that the application is updated in batches to ensure application functionality continues to be offered at any time. And that is bringing us the holy grail of the zero downtime application update. But as a result of a rolling update, during the update, different versions of the application will be running. And if your application doesn't like it, then you can use the strategy.type.recreate. So you set it to recreate and that will bring down all application instances, after which the new application version is brought up. But the disadvantage is that there will be a moment of unavailability. To manage how a rolling update will happen, two parameters are used. There is maxSurge which specifies how many application instances…

Contents