Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
all cofnig align of lest and when you copy/paste you need to update it manually
  • Loading branch information
AleksFirsta authored Sep 17, 2024
1 parent 19aee55 commit c607726
Showing 1 changed file with 2 additions and 6 deletions.
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

0 comments on commit c607726

Please sign in to comment.