kubevela/docs/examples/rollout-trait
Rimond a5fb09814e
Fix(docs): rollout example error (#3427)
* 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>
2022-03-14 13:13:05 +08:00
..
README.md Fix(docs): rollout example error (#3427) 2022-03-14 13:13:05 +08:00
app-revert.yaml rollout controller find sourceRevision (#1989) 2021-08-03 20:27:11 +08:00
app-scale.yaml Fix(docs): rollout example error (#3427) 2022-03-14 13:13:05 +08:00
app-v2.yaml rollout controller find sourceRevision (#1989) 2021-08-03 20:27:11 +08:00
app-v3.yaml rollout controller find sourceRevision (#1989) 2021-08-03 20:27:11 +08:00
application.yaml rollout controller find sourceRevision (#1989) 2021-08-03 20:27:11 +08:00

README.md

Application use Rollout trait Example

Here is an example of how to use rollout trait with workload type is webservice.

  1. create test namespace
kubectl create ns  rollout-trait-test
  1. create application with a component and a rollout trait
kubectl apply -f ./docs/examples/rollout-trait/application.yaml
  1. modify container cpu to rollout to component v2
kubectl apply -f ./docs/examples/rollout-trait/app-v2.yaml
  1. specify component v1 to revert
kubectl apply -f ./docs/examples/rollout-trait/app-revert.yaml
  1. modify cpu again and omit targetRevision to rollout to component v3
kubectl apply -f ./docs/examples/rollout-trait/app-v3.yaml
  1. modify targetSize as 7 to scale
kubectl apply -f ./docs/examples/rollout-trait/app-scale.yaml