From a980d69fff1e9608cf26d869192a352159d72eee Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Wed, 28 Aug 2024 15:41:29 +0200 Subject: [PATCH] fix stream redirect commands (#842) Signed-off-by: Eguzki Astiz Lezaun --- doc/user-guides/authenticated-rl-for-app-developers.md | 2 +- doc/user-guides/authenticated-rl-with-jwt-and-k8s-authnz.md | 2 +- doc/user-guides/gateway-rl-for-cluster-operators.md | 4 ++-- doc/user-guides/simple-rl-for-app-developers.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/user-guides/authenticated-rl-for-app-developers.md b/doc/user-guides/authenticated-rl-for-app-developers.md index e1834d471..4d7e0de10 100644 --- a/doc/user-guides/authenticated-rl-for-app-developers.md +++ b/doc/user-guides/authenticated-rl-for-app-developers.md @@ -104,7 +104,7 @@ curl -H 'Host: api.toystore.com' http://$GATEWAY_URL/toy -i > **Note**: If the command above fails to hit the Toy Store API on your environment, try forwarding requests to the service and accessing over localhost: > > ```sh -> kubectl port-forward -n istio-system service/istio-ingressgateway-istio 9080:80 2>&1 >/dev/null & +> kubectl port-forward -n istio-system service/istio-ingressgateway-istio 9080:80 >/dev/null 2>&1 & > export GATEWAY_URL=localhost:9080 > ``` > ```sh diff --git a/doc/user-guides/authenticated-rl-with-jwt-and-k8s-authnz.md b/doc/user-guides/authenticated-rl-with-jwt-and-k8s-authnz.md index a739ec31b..9c39c508f 100644 --- a/doc/user-guides/authenticated-rl-with-jwt-and-k8s-authnz.md +++ b/doc/user-guides/authenticated-rl-with-jwt-and-k8s-authnz.md @@ -100,7 +100,7 @@ It should return `200 OK`. > **Note**: If the command above fails to hit the Toy Store API on your environment, try forwarding requests to the service and accessing over localhost: > > ```sh -> kubectl port-forward -n istio-system service/istio-ingressgateway-istio 9080:80 2>&1 >/dev/null & +> kubectl port-forward -n istio-system service/istio-ingressgateway-istio 9080:80 >/dev/null 2>&1 & > export GATEWAY_URL=localhost:9080 > ``` > ```sh diff --git a/doc/user-guides/gateway-rl-for-cluster-operators.md b/doc/user-guides/gateway-rl-for-cluster-operators.md index df70cbe9c..c3edc398a 100644 --- a/doc/user-guides/gateway-rl-for-cluster-operators.md +++ b/doc/user-guides/gateway-rl-for-cluster-operators.md @@ -181,8 +181,8 @@ EOF Expose the gateways, respectively at the port numbers `9081` and `9082` of the local host: ```sh -kubectl port-forward -n istio-system service/external-istio 9081:80 2>&1 >/dev/null & -kubectl port-forward -n istio-system service/internal-istio 9082:80 2>&1 >/dev/null & +kubectl port-forward -n istio-system service/external-istio 9081:80 >/dev/null 2>&1 & +kubectl port-forward -n istio-system service/internal-istio 9082:80 >/dev/null 2>&1 & ``` Up to 5 successful (`200 OK`) requests every 10 seconds through the `external` ingress gateway (`*.io`), then `429 Too Many Requests`: diff --git a/doc/user-guides/simple-rl-for-app-developers.md b/doc/user-guides/simple-rl-for-app-developers.md index e05f57e06..4f151f238 100644 --- a/doc/user-guides/simple-rl-for-app-developers.md +++ b/doc/user-guides/simple-rl-for-app-developers.md @@ -105,7 +105,7 @@ curl -H 'Host: api.toystore.com' http://$GATEWAY_URL/toys -i > **Note**: If the command above fails to hit the Toy Store API on your environment, try forwarding requests to the service and accessing over localhost: > > ```sh -> kubectl port-forward -n istio-system service/istio-ingressgateway-istio 9080:80 2>&1 >/dev/null & +> kubectl port-forward -n istio-system service/istio-ingressgateway-istio 9080:80 >/dev/null 2>&1 & > export GATEWAY_URL=localhost:9080 > ``` > ```sh