Skip to content

Commit b955d67

Browse files
committed
CodeBlockConfig removal
1 parent 17c4561 commit b955d67

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

website/content/docs/k8s/connect/cluster-peering/usage/k8s-l7-traffic.mdx

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ To configure L7 traffic management behavior in deployments with cluster peering
2525

2626
The following example updates the [`service-resolver` CRD](/docs/connect/config-entries/) in `cluster-01` so that Consul redirects traffic intended for the `frontend` service to a backup instance in peer `cluster-02` when it detects multiple connection failures.
2727

28-
<CodeBlockConfig filename="failover-resolver.yaml">
29-
3028
```yaml
3129
apiVersion: consul.hashicorp.com/v1alpha1
3230
kind: ServiceResolver
@@ -42,20 +40,10 @@ To configure L7 traffic management behavior in deployments with cluster peering
4240
namespace: 'default'
4341
```
4442
45-
</CodeBlockConfig>
46-
47-
1. Apply the resource to the local cluster.
48-
49-
```shell-session
50-
$ kubectl apply --filename failover-resolver.yaml
51-
```
52-
5343
1. Define the desired behavior in `service-splitter` or `service-router` CRD.
5444

5545
The following example splits traffic evenly between `frontend` and `frontend-peer`:
5646

57-
<CodeBlockConfig filename="splitter.yaml">
58-
5947
```yaml
6048
apiVersion: consul.hashicorp.com/v1alpha1
6149
kind: ServiceSplitter
@@ -69,20 +57,10 @@ To configure L7 traffic management behavior in deployments with cluster peering
6957
service: frontend-peer
7058
```
7159

72-
</CodeBlockConfig>
73-
74-
1. Apply the resource to the local cluster.
75-
76-
```shell-session
77-
$ kubectl apply --filename splitter.yaml
78-
```
79-
8060
1. Create a second `service-resolver` configuration entry on the local cluster that resolves the name of the peer service you used when splitting or routing the traffic.
8161

8262
The following example uses the name `frontend-peer` to define a redirect targeting the `frontend` service on the peer `cluster-02`:
8363

84-
<CodeBlockConfig filename="peer-resolver.yaml">
85-
8664
```yaml
8765
apiVersion: consul.hashicorp.com/v1alpha1
8866
kind: ServiceResolver
@@ -92,12 +70,4 @@ To configure L7 traffic management behavior in deployments with cluster peering
9270
redirect:
9371
peer: 'cluster-02'
9472
service: 'frontend'
95-
```
96-
97-
</CodeBlockConfig>
98-
99-
1. Apply the resource to the local cluster.
100-
101-
```shell-session
102-
$ kubectl apply --filename peer-resolver.yaml
103-
```
73+
```

0 commit comments

Comments
 (0)