mirror of https://github.com/kubevela/kubevela.git
* modify docs errors Signed-off-by: liming.jlm <liming.jlm@alibaba-inc.com> * modify the incorrect file name Signed-off-by: liming.jlm <liming.jlm@alibaba-inc.com> Co-authored-by: liming.jlm <liming.jlm@alibaba-inc.com> |
||
|---|---|---|
| .. | ||
| README.md | ||
| app-revert.yaml | ||
| app-scale.yaml | ||
| app-v2.yaml | ||
| app-v3.yaml | ||
| application.yaml | ||
README.md
Application use Rollout trait Example
Here is an example of how to use rollout trait with workload type is webservice.
- create test namespace
kubectl create ns rollout-trait-test
- create application with a component and a rollout trait
kubectl apply -f ./docs/examples/rollout-trait/application.yaml
- modify container cpu to rollout to component v2
kubectl apply -f ./docs/examples/rollout-trait/app-v2.yaml
- specify component v1 to revert
kubectl apply -f ./docs/examples/rollout-trait/app-revert.yaml
- modify cpu again and omit targetRevision to rollout to component v3
kubectl apply -f ./docs/examples/rollout-trait/app-v3.yaml
- modify targetSize as 7 to scale
kubectl apply -f ./docs/examples/rollout-trait/app-scale.yaml