Skip to content

Fixed Identation for faster access #16688

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

Closed
wants to merge 1 commit into from
Closed
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
106 changes: 53 additions & 53 deletions content/en/docs/tasks/traffic-management/mirroring/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ you will apply a rule to mirror a portion of traffic to `v2`.
app: httpbin
spec:
ports:
- name: http
port: 8000
targetPort: 80
- name: http
port: 8000
targetPort: 80
selector:
app: httpbin
EOF
Expand All @@ -123,10 +123,10 @@ you will apply a rule to mirror a portion of traffic to `v2`.
app: curl
spec:
containers:
- name: curl
image: curlimages/curl
command: ["/bin/sleep","3650d"]
imagePullPolicy: IfNotPresent
- name: curl
image: curlimages/curl
command: ["/bin/sleep", "3650d"]
imagePullPolicy: IfNotPresent
EOF
{{< /text >}}

Expand All @@ -151,25 +151,25 @@ In this step, you will change that behavior so that all traffic goes to `v1`.
hosts:
- httpbin
http:
- route:
- destination:
host: httpbin
subset: v1
weight: 100
---
- route:
- destination:
host: httpbin
subset: v1
weight: 100
---
apiVersion: networking.istio.io/v1
kind: DestinationRule
metadata:
name: httpbin
spec:
host: httpbin
subsets:
- name: v1
labels:
version: v1
- name: v2
labels:
version: v2
- name: v1
labels:
version: v1
- name: v2
labels:
version: v2
EOF
{{< /text >}}

Expand All @@ -185,38 +185,38 @@ In this step, you will change that behavior so that all traffic goes to `v1`.
name: httpbin-v1
spec:
ports:
- port: 80
name: http
- port: 80
name: http
selector:
app: httpbin
version: v1
---
---
apiVersion: v1
kind: Service
metadata:
name: httpbin-v2
spec:
ports:
- port: 80
name: http
- port: 80
name: http
selector:
app: httpbin
version: v2
---
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: httpbin
spec:
parentRefs:
- group: ""
kind: Service
name: httpbin
port: 8000
- group: ""
kind: Service
name: httpbin
port: 8000
rules:
- backendRefs:
- name: httpbin-v1
port: 80
- backendRefs:
- name: httpbin-v1
port: 80
EOF
{{< /text >}}

Expand Down Expand Up @@ -274,16 +274,16 @@ In this step, you will change that behavior so that all traffic goes to `v1`.
hosts:
- httpbin
http:
- route:
- destination:
- route:
- destination:
host: httpbin
subset: v1
weight: 100
mirror:
host: httpbin
subset: v1
weight: 100
mirror:
host: httpbin
subset: v2
mirrorPercentage:
value: 100.0
subset: v2
mirrorPercentage:
value: 100.0
EOF
{{< /text >}}

Expand Down Expand Up @@ -311,20 +311,20 @@ In this step, you will change that behavior so that all traffic goes to `v1`.
name: httpbin
spec:
parentRefs:
- group: ""
kind: Service
name: httpbin
port: 8000
- group: ""
kind: Service
name: httpbin
port: 8000
rules:
- filters:
- type: RequestMirror
requestMirror:
backendRef:
name: httpbin-v2
- backendRefs:
- name: httpbin-v1
port: 80
backendRefs:
- name: httpbin-v1
port: 80
filters:
- type: RequestMirror
requestMirror:
backendRef:
name: httpbin-v2
port: 80
EOF
{{< /text >}}

Expand Down