Files
kubevela/docs/examples/cloneset-rollout
wyike 9a3c63a843 override initial replicas of workload in first scale operation (#1891)
* clean up some logic

rebase and reorder phase

add log and modify e2e-test

fix reviwable

fix comment

* fix condition relate comments

finish test func

fix formate error
2021-07-08 19:45:18 +08:00
..
2021-05-24 17:23:02 +08:00

Rollout Example

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

Install Kruise

helm install kruise https://github.com/openkruise/kruise/releases/download/v0.7.0/kruise-chart.tgz

Rollout steps

  1. Install CloneSet based workloadDefinition
kubectl apply -f docs/examples/cloneset-rollout/clonesetDefinition.yaml
  1. Apply an application for rolling out
kubectl apply -f docs/examples/cloneset-rollout/app-scale.yaml
kubectl apply -f docs/examples/cloneset-rollout/appRollout-scale.yaml

Check the status of the ApplicationRollout and wait for the rollout to complete.

  1. Modify the application image and apply
kubectl apply -f docs/examples/cloneset-rollout/app-target.yaml
  1. Apply the application rollout that stops at the second batch and mrk the application as normal
kubectl apply -f docs/examples/cloneset-rollout/appRollout-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 rollout that completes the rollout
kubectl apply -f docs/examples/cloneset-rollout/appRollout-finish.yaml

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