deploystrategy

 There are two types of deployment strategies,

  1. Recreate
  2. RollingUpdate(default)


Recreate Strategy:

In the "Recreate" deployment strategy, all the pods will be terminated simultaneously and recreated with the new version of the pods. 

Advantages: It's quick as the pods will get terminated in parallel, and deployment happens in parallel after the termination. 

Disadvantage: It gives downtime to the application due to all pods being down at the same time.


RollingUpdate Strategy(Recommended):

In the "RollingUpdate" deployment strategy, each pods will be terminated sequentially and recreated with the new version of the pods. 

Advantages: No downtime to the users.