Please adjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_load_balancing_strategy" "disable_la_to_backend" {
provider = konnect-beta
type = "MeshLoadBalancingStrategy"
name = "disable-la-to-backend"
spec = {
to = [
{
target_ref = {
kind = "MeshMultiZoneService"
name = "backend"
namespace = "kuma-demo"
_port = "8080"
section_name = "http"
}
default = {
locality_awareness = {
disabled = "true"
}
}
}
]
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}