kubevela/docs/examples/deployment-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
..
README.md fix deployment example (#1797) 2021-06-15 16:27:39 +08:00
app-rollout-finish.yaml add webhook convert. (#1282) 2021-03-24 17:15:20 -07:00
app-rollout-pause.yaml fix deployment example (#1797) 2021-06-15 16:27:39 +08:00
app-rollout-scale.yaml override initial replicas of workload in first scale operation (#1891) 2021-07-08 19:45:18 +08:00
app-source.yaml Finalize deployment rollout (#1539) 2021-04-21 13:42:49 +08:00
app-target.yaml Finalize deployment rollout (#1539) 2021-04-21 13:42:49 +08:00
webservice-definition.yaml Finalize deployment rollout (#1539) 2021-04-21 13:42:49 +08:00

README.md

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 scale appRollout
kubectl apply -f docs/examples/deployment-rollout/app-rollout-scale.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 AppRollout and see the rollout completes, and the AppRollout's "Rolling State" becomes rolloutSucceed