From 663255158ff96bc94cf860a618428d1c1521c5da Mon Sep 17 00:00:00 2001 From: Guang Ya Liu Date: Thu, 28 Sep 2017 08:59:13 -0500 Subject: [PATCH] Added cleanup section for fault-injection and request-routing. (#536) * Added cleanup section for fault-injection and request-routering. * fixing file names --- .../traffic-management/fault-injection.md | 10 ++++++++++ .../traffic-management/request-routing.md | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/_docs/tasks/traffic-management/fault-injection.md b/_docs/tasks/traffic-management/fault-injection.md index f59b0bfd5f..90ee39311d 100644 --- a/_docs/tasks/traffic-management/fault-injection.md +++ b/_docs/tasks/traffic-management/fault-injection.md @@ -110,6 +110,16 @@ continue without any errors. (Left as an exercise for the reader - change the delay rule to use a 2.8 second delay and then run it against the v3 version of reviews.) +## Cleanup + +* Remove the application routing rules: + + ```bash + istioctl delete -f samples/bookinfo/kube/route-rule-all-v1.yaml + istioctl delete -f samples/bookinfo/kube/route-rule-reviews-test-v2.yaml + istioctl delete -f samples/bookinfo/kube/route-rule-ratings-test-delay.yaml + ``` + ## What's next * Learn more about [fault injection]({{home}}/docs/concepts/traffic-management/fault-injection.html). diff --git a/_docs/tasks/traffic-management/request-routing.md b/_docs/tasks/traffic-management/request-routing.md index f93394289b..2cf0b889ee 100644 --- a/_docs/tasks/traffic-management/request-routing.md +++ b/_docs/tasks/traffic-management/request-routing.md @@ -169,6 +169,24 @@ on a header (i.e., a user cookie) in a request. Once the v2 version has been tested to our satisfaction, we could use Istio to send traffic from all users to v2, optionally in a gradual fashion. We'll explore this in a separate task. +## Cleanup + +* Remove the application routing rules. + + For Kubernetes-based setup, use the following command: + + ```bash + istioctl delete -f samples/bookinfo/kube/route-rule-all-v1.yaml + istioctl delete -f samples/bookinfo/kube/route-rule-reviews-test-v2.yaml + ``` + + For Consul-based setup, use the following command: + + ```bash + istioctl delete -f samples/bookinfo/consul/route-rule-all-v1.yaml + istioctl delete -f samples/bookinfo/consul/route-rule-reviews-test-v2.yaml + ``` + ## What's next * Learn more about [request routing]({{home}}/docs/concepts/traffic-management/rules-configuration.html).