docs: add mirrorWeight example

This commit is contained in:
mathetake
2020-03-10 15:16:03 +09:00
parent aec0010b14
commit d911e1ddc5
2 changed files with 6 additions and 2 deletions
@@ -324,6 +324,8 @@ spec:
iterations: 10
# enable traffic shadowing
mirror: true
# weight of the traffic mirrored to your canary (defaults to 100%)
mirrorWeight: 100.0
metrics:
- name: request-success-rate
thresholdRange:
@@ -357,7 +359,7 @@ With the above configuration, Flagger will run a canary release with the followi
* run the acceptance tests
* abort the canary release if tests fail
* start the load tests
* mirror traffic from primary to canary
* mirror 100% of the traffic from primary to canary
* check request success rate and request duration every minute
* abort the canary release if the metrics check failure threshold is reached
* stop traffic mirroring after the number of iterations is reached
+3 -1
View File
@@ -277,6 +277,8 @@ Istio example:
threshold: 2
# Traffic shadowing (compatible with Istio only)
mirror: true
# Weight of the traffic mirrored to your canary (defaults to 100%)
mirrorWeight: 100.0
```
Mirroring rollout steps for service mesh:
@@ -287,7 +289,7 @@ Mirroring rollout steps for service mesh:
* run the acceptance tests
* abort the canary release if tests fail
* start the load tests
* mirror traffic from primary to canary
* mirror 100% of the traffic from primary to canary
* check request success rate and request duration every minute
* abort the canary release if the failure threshold is reached
* stop traffic mirroring after the number of iterations is reached