Files
kubevela/docs/examples/deployment-rollout
Jianbo Sun 53ae9aaa40 add webhook convert. (#1282)
fix diff

update example and test data version

fix convert function

fix e2e for helm

clean up creationTimestamp in a hack way

fix ci

pending package suit test

fix group version

fix ci

fix ut

rename type to kind

fix example

fix conflicts

Co-authored-by: yangsoon <yangsoonlx@gmail.com>
2021-03-24 17:15:20 -07:00
..
2021-03-24 17:15:20 -07:00
2021-03-24 17:15:20 -07:00
2021-03-15 20:40:02 -07: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

Wait for the application's status to be "running"

  1. Prepare the application for rolling out
kubectl apply -f docs/examples/deployment-rollout/app-source-prep.yaml
  1. Modify the application image and apply
kubectl apply -f docs/examples/deployment-rollout/app-target.yaml
  1. Mark the application as normal
kubectl apply -f docs/examples/deployment-rollout/app-target-done.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