Files
kubevela/docs/examples/rollout
Ryan Zhang 7207819080 fine tune rollout experience with demo (#1119)
* fine tune rollout experience with demo

* fix test
2021-03-02 17:24:12 +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/rollout/clonesetDefinition.yaml
  1. Apply an application
kubectl apply -f docs/examples/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/rollout/app-source-prep.yaml

Wait for the applicationConfiguration "test-rolling-v1" Rolling Status to be "RollingTemplated"

  1. Modify the application image and apply
kubectl apply -f docs/examples/rollout/app-target.yaml

Wait for the applicationConfiguration "test-rolling-v2" Rolling Status to be "RollingTemplated"

  1. Apply the application deployment CR
kubectl apply -f docs/examples/rollout/app-deploy.yaml

Check the status of the ApplicationDeployment and see the step by step rolling out