Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.md #15700

Open
wants to merge 1 commit into
base: release-1.23
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions content/en/docs/tasks/traffic-management/mirroring/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ In this step, you will change that behavior so that all traffic goes to `v1`.

{{< tab name="Istio APIs" category-value="istio-apis" >}}

{{< text bash >}}
$ kubectl apply -f - <<EOF
{{< text yaml >}}
apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
Expand All @@ -284,7 +283,6 @@ In this step, you will change that behavior so that all traffic goes to `v1`.
subset: v2
mirrorPercentage:
value: 100.0
EOF
{{< /text >}}

This route rule sends 100% of the traffic to `v1`. The last stanza specifies
Expand All @@ -303,8 +301,7 @@ In this step, you will change that behavior so that all traffic goes to `v1`.

{{< tab name="Gateway API" category-value="gateway-api" >}}

{{< text bash >}}
$ kubectl apply -f - <<EOF
{{< text yaml >}}
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
Expand All @@ -325,7 +322,6 @@ In this step, you will change that behavior so that all traffic goes to `v1`.
backendRefs:
- name: httpbin-v1
port: 80
EOF
{{< /text >}}

This route rule sends 100% of the traffic to `v1`. The `RequestMirror` filter
Expand Down