From 7239fa44de5b09888fbc0452bf374b9311abb5f2 Mon Sep 17 00:00:00 2001 From: Marcin Skalski Date: Mon, 4 Nov 2024 13:23:23 +0100 Subject: [PATCH] fix(policies): fix policy examples to use default mesh (#2057) Signed-off-by: Marcin Skalski --- .../policies/meshloadbalancingstrategy.md | 32 +++++++++---------- app/_src/policies/meshmetric.md | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/app/_src/policies/meshloadbalancingstrategy.md b/app/_src/policies/meshloadbalancingstrategy.md index ba53594d5..89d08ba41 100644 --- a/app/_src/policies/meshloadbalancingstrategy.md +++ b/app/_src/policies/meshloadbalancingstrategy.md @@ -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 @@ -259,7 +259,7 @@ spec: ```yaml type: MeshLoadBalancingStrategy name: ring-hash -mesh: mesh-1 +mesh: default spec: targetRef: kind: MeshSubset @@ -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 @@ -314,7 +314,7 @@ spec: ```yaml type: MeshLoadBalancingStrategy name: disable-la-to-backend -mesh: mesh-1 +mesh: default spec: to: - targetRef: @@ -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 @@ -364,7 +364,7 @@ spec: ```yaml type: MeshLoadBalancingStrategy name: local-zone-affinity-backend -mesh: mesh-1 +mesh: default spec: to: - targetRef: @@ -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 @@ -414,7 +414,7 @@ spec: ```yaml type: MeshLoadBalancingStrategy name: local-zone-affinity-backend -mesh: mesh-1 +mesh: default spec: to: - targetRef: @@ -438,7 +438,7 @@ or ```yaml type: MeshLoadBalancingStrategy name: local-zone-affinity-backend -mesh: mesh-1 +mesh: default spec: targetRef: kind: Mesh @@ -459,7 +459,7 @@ spec: ```yaml type: MeshLoadBalancingStrategy name: local-zone-affinity-backend -mesh: mesh-1 +mesh: default spec: to: - targetRef: @@ -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 @@ -516,7 +516,7 @@ spec: ```yaml type: MeshLoadBalancingStrategy name: cross-zone-backend -mesh: mesh-1 +mesh: default spec: to: - targetRef: @@ -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 @@ -596,7 +596,7 @@ spec: ```yaml type: MeshLoadBalancingStrategy name: local-zone-affinity-cross-backend -mesh: mesh-1 +mesh: default spec: to: - targetRef: @@ -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 @@ -670,7 +670,7 @@ spec: ```yaml type: MeshProxyPatch name: max-requests-per-conn -mesh: mesh-1 +mesh: default spec: default: appendModifications: diff --git a/app/_src/policies/meshmetric.md b/app/_src/policies/meshmetric.md index 80302ff02..c8b5bce04 100644 --- a/app/_src/policies/meshmetric.md +++ b/app/_src/policies/meshmetric.md @@ -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