Skip to content

Commit

Permalink
fix(policies): fix policy examples to use default mesh (#2057)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcin Skalski <[email protected]>
  • Loading branch information
Automaat authored Nov 4, 2024
1 parent 5917de6 commit 7239fa4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions app/_src/policies/meshloadbalancingstrategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ Load balance requests from `frontend` to `backend` based on the HTTP header `x-h
```yaml
type: MeshLoadBalancingStrategy
name: ring-hash
mesh: mesh-1
mesh: default
spec:
targetRef:
kind: MeshSubset
Expand Down Expand Up @@ -259,7 +259,7 @@ spec:
```yaml
type: MeshLoadBalancingStrategy
name: ring-hash
mesh: mesh-1
mesh: default
spec:
targetRef:
kind: MeshSubset
Expand Down Expand Up @@ -293,7 +293,7 @@ Requests to `backend` will be spread evenly across all zones where `backend` is
```yaml
type: MeshLoadBalancingStrategy
name: disable-la-to-backend
mesh: mesh-1
mesh: default
spec:
targetRef:
kind: Mesh
Expand All @@ -314,7 +314,7 @@ spec:
```yaml
type: MeshLoadBalancingStrategy
name: disable-la-to-backend
mesh: mesh-1
mesh: default
spec:
to:
- targetRef:
Expand All @@ -340,7 +340,7 @@ In this example, whenever a user sends a request to the `backend` service, 90% o
```yaml
type: MeshLoadBalancingStrategy
name: local-zone-affinity-backend
mesh: mesh-1
mesh: default
spec:
targetRef:
kind: Mesh
Expand All @@ -364,7 +364,7 @@ spec:
```yaml
type: MeshLoadBalancingStrategy
name: local-zone-affinity-backend
mesh: mesh-1
mesh: default
spec:
to:
- targetRef:
Expand Down Expand Up @@ -392,7 +392,7 @@ In this example, when a user sends a request to the backend service, the request
```yaml
type: MeshLoadBalancingStrategy
name: local-zone-affinity-backend
mesh: mesh-1
mesh: default
spec:
targetRef:
kind: Mesh
Expand All @@ -414,7 +414,7 @@ spec:
```yaml
type: MeshLoadBalancingStrategy
name: local-zone-affinity-backend
mesh: mesh-1
mesh: default
spec:
to:
- targetRef:
Expand All @@ -438,7 +438,7 @@ or
```yaml
type: MeshLoadBalancingStrategy
name: local-zone-affinity-backend
mesh: mesh-1
mesh: default
spec:
targetRef:
kind: Mesh
Expand All @@ -459,7 +459,7 @@ spec:
```yaml
type: MeshLoadBalancingStrategy
name: local-zone-affinity-backend
mesh: mesh-1
mesh: default
spec:
to:
- targetRef:
Expand All @@ -484,7 +484,7 @@ Requests to the backend service will be evenly distributed among all endpoints w
```yaml
type: MeshLoadBalancingStrategy
name: cross-zone-backend
mesh: mesh-1
mesh: default
spec:
targetRef:
kind: Mesh
Expand Down Expand Up @@ -516,7 +516,7 @@ spec:
```yaml
type: MeshLoadBalancingStrategy
name: cross-zone-backend
mesh: mesh-1
mesh: default
spec:
to:
- targetRef:
Expand Down Expand Up @@ -554,7 +554,7 @@ When no healthy backends are available within the local zone, traffic from data
```yaml
type: MeshLoadBalancingStrategy
name: local-zone-affinity-cross-backend
mesh: mesh-1
mesh: default
spec:
targetRef:
kind: Mesh
Expand Down Expand Up @@ -596,7 +596,7 @@ spec:
```yaml
type: MeshLoadBalancingStrategy
name: local-zone-affinity-cross-backend
mesh: mesh-1
mesh: default
spec:
to:
- targetRef:
Expand Down Expand Up @@ -649,7 +649,7 @@ You can mitigate this problem by adjusting `max_requests_per_connection` setting
```yaml
type: MeshProxyPatch
name: max-requests-per-conn
mesh: mesh-1
mesh: default
spec:
targetRef:
kind: Mesh
Expand All @@ -670,7 +670,7 @@ spec:
```yaml
type: MeshProxyPatch
name: max-requests-per-conn
mesh: mesh-1
mesh: default
spec:
default:
appendModifications:
Expand Down
2 changes: 1 addition & 1 deletion app/_src/policies/meshmetric.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ spec:
```
{% endpolicy_yaml %}
##### Include all metrics apart from one manually excluded
##### Exclude all metrics apart from one manually added
{% policy_yaml exclude_only_manually_defined %}
```yaml
Expand Down

0 comments on commit 7239fa4

Please sign in to comment.