Files
kubevela/docs/examples/deployment-rollout
Ryan Zhang 467506c498 Finalize deployment rollout (#1539)
* finalize deployment rollout

* refactor workload controllers to base on the same parent
2021-04-21 13:42:49 +08:00
..
2021-04-21 13:42:49 +08:00

Rollout Example

Here is an example of how to rollout an application with a component of type deployment.

Rollout steps

  1. Install deployment based workloadDefinition
kubectl apply -f docs/examples/deployment-rollout/webservice-definition.yaml
  1. Apply an application
kubectl apply -f docs/examples/deployment-rollout/app-source.yaml
  1. Modify the application image and apply
kubectl apply -f docs/examples/deployment-rollout/app-target.yaml
  1. Apply the application deployment with pause
kubectl apply -f docs/examples/deployment-rollout/app-rollout-pause.yaml

Check the status of the ApplicationRollout and see the step by step rolling out. This rollout will pause after the second batch.

  1. Apply the application deployment that completes the rollout
kubectl apply -f docs/examples/deployment-rollout/app-rollout-finish.yaml

Check the status of the ApplicationRollout and see the rollout completes, and the ApplicationRollout's "Rolling State" becomes rolloutSucceed