Skip to content

Commit

Permalink
filename
Browse files Browse the repository at this point in the history
  • Loading branch information
boruszak committed Feb 22, 2023
1 parent 0ee5fc4 commit 17c4561
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To configure L7 traffic management behavior in deployments with cluster peering

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.

<CodeBlockConfig heading="failover-resolver.yaml">
<CodeBlockConfig filename="failover-resolver.yaml">

```yaml
apiVersion: consul.hashicorp.com/v1alpha1
Expand Down Expand Up @@ -54,7 +54,7 @@ To configure L7 traffic management behavior in deployments with cluster peering

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

<CodeBlockConfig heading="splitter.yaml">
<CodeBlockConfig filename="splitter.yaml">

```yaml
apiVersion: consul.hashicorp.com/v1alpha1
Expand All @@ -81,7 +81,7 @@ To configure L7 traffic management behavior in deployments with cluster peering

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

<CodeBlockConfig heading="peer-resolver.yaml">
<CodeBlockConfig filename="peer-resolver.yaml">

```yaml
apiVersion: consul.hashicorp.com/v1alpha1
Expand Down

0 comments on commit 17c4561

Please sign in to comment.