Deployment strategy in Kubernetes
For example you have 5 replicas of your application instance deployed. There are 2 methods to update them:
- Recreate - one way to upgrade this to the newer version is to destroy all of replicas and then create newer versions of the application instances. The problem with this, is that application will have downtime. Thankfully, this is not a default option.
- Rolling update. The another strategy to not destroy replicas at once, but instead taking down some of instances of older version and bring up the newer version. This way - application never goes down and the upgrade is seamless. This is default option if you do not specify the type of deployment strategy.