github.com/oam-dev/kubevela@v1.9.11/docs/examples/rollout-trait/README.md (about) 1 # Application use Rollout trait Example 2 3 Here is an example of how to use rollout trait with workload type is webservice. 4 5 1. create test namespace 6 ```shell 7 kubectl create ns rollout-trait-test 8 ``` 9 10 2. create application with a component and a rollout trait 11 ```shell 12 kubectl apply -f ./docs/examples/rollout-trait/application.yaml 13 ``` 14 15 3. modify container cpu to rollout to component v2 16 ```shell 17 kubectl apply -f ./docs/examples/rollout-trait/app-v2.yaml 18 ``` 19 20 4. specify component v1 to revert 21 ```shell 22 kubectl apply -f ./docs/examples/rollout-trait/app-revert.yaml 23 ``` 24 25 5. modify cpu again and omit targetRevision to rollout to component v3 26 ```shell 27 kubectl apply -f ./docs/examples/rollout-trait/app-v3.yaml 28 ``` 29 30 6. modify targetSize as 7 to scale 31 ```shell 32 kubectl apply -f ./docs/examples/rollout-trait/app-scale.yaml 33 ```