mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-06 09:27:16 +00: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
- Install CloneSet based workloadDefinition
kubectl apply -f docs/examples/rollout/clonesetDefinition.yaml
- Apply an application
kubectl apply -f docs/examples/rollout/app-source.yaml
Wait for the application's status to be "running"
- 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"
- 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"
- Apply the application deployment with pause
kubectl apply -f docs/examples/rollout/app-deploy-pause.yaml
Check the status of the ApplicationDeployment and see the step by step rolling out. This rollout will pause after the second batch.
- Apply the application deployment that completes the rollout
kubectl apply -f docs/examples/rollout/app-deploy-finish.yaml
Check the status of the ApplicationDeployment and see the rollout completes and the
applicationDeployment's "Rolling State" becomes rolloutSucceed