Skip to content

Commit c607726

Browse files
authored
Update index.md
all cofnig align of lest and when you copy/paste you need to update it manually
1 parent 19aee55 commit c607726

File tree

1 file changed

+2
-6
lines changed
  • content/en/docs/tasks/traffic-management/mirroring

1 file changed

+2
-6
lines changed

content/en/docs/tasks/traffic-management/mirroring/index.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,7 @@ In this step, you will change that behavior so that all traffic goes to `v1`.
264264

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

267-
{{< text bash >}}
268-
$ kubectl apply -f - <<EOF
267+
{{< text yaml >}}
269268
apiVersion: networking.istio.io/v1
270269
kind: VirtualService
271270
metadata:
@@ -284,7 +283,6 @@ In this step, you will change that behavior so that all traffic goes to `v1`.
284283
subset: v2
285284
mirrorPercentage:
286285
value: 100.0
287-
EOF
288286
{{< /text >}}
289287

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

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

306-
{{< text bash >}}
307-
$ kubectl apply -f - <<EOF
304+
{{< text yaml >}}
308305
apiVersion: gateway.networking.k8s.io/v1
309306
kind: HTTPRoute
310307
metadata:
@@ -325,7 +322,6 @@ In this step, you will change that behavior so that all traffic goes to `v1`.
325322
backendRefs:
326323
- name: httpbin-v1
327324
port: 80
328-
EOF
329325
{{< /text >}}
330326

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

0 commit comments

Comments
 (0)