Add notes explaining when to use replace rather than create for routing rules (#373)

...if rules already exist

* Add note about using "replace" rather than "create"

* Implementing Frank's edits

* Implementing Frank's edits

* Implementing Frank's edits

* Implementing Frank's edits
This commit is contained in:
LisaFC 2017-06-13 14:27:39 -07:00 committed by GitHub
parent a1df5dc08f
commit 1a1d967384
3 changed files with 9 additions and 2 deletions

View File

@ -21,12 +21,15 @@ This task shows how to inject delays and test the resiliency of your application
* Initialize the application version routing by either first doing the
[request routing](./request-routing.html) task or by running following
commands:
> Note: This assumes you don't have any routes set yet. If you've already created conflicting route rules for the sample, you'll need to use `replace` rather than `create` in one or both of the following commands.
```bash
istioctl create -f samples/apps/bookinfo/route-rule-all-v1.yaml
istioctl create -f samples/apps/bookinfo/route-rule-reviews-test-v2.yaml
```
## Fault injection
To test our BookInfo application microservices for resiliency, we will _inject a 7s delay_

View File

@ -22,11 +22,13 @@ This task shows you how to configure dynamic request routing based on weights an
Because the BookInfo sample deploys 3 versions of the reviews microservice,
we need to set a default route.
Otherwise if you access the application several times, you would notice that sometimes the output contains
Otherwise if you access the application several times, you'll notice that sometimes the output contains
star ratings.
This is because without an explicit default version set, Istio will
route requests to all available versions of a service in a random fashion.
> Note: This task assumes you don't have any routes set yet. If you've already created conflicting route rules for the sample, you'll need to use `replace` rather than `create` in one or both of the following commands.
1. Set the default version for all microservices to v1.
```bash

View File

@ -20,6 +20,8 @@ This task shows you how to setup request timeouts in Envoy using Istio.
* Deploy the [BookInfo]({{home}}/docs/samples/bookinfo.html) sample application.
* Initialize the application version routing by running the following command:
> Note: This assumes you don't have any routes set yet. If you've already created route rules for the sample, you'll need to use `replace` rather than `create` in the following command.
```bash
istioctl create -f samples/apps/bookinfo/route-rule-all-v1.yaml