Targeting parts of the infrastructure: West Only
To do this, we use a TargetRef kind value of MeshSubset to filter which data plane proxy a policy applies to.
To do this, we use a TargetRef kind value of MeshSubset to filter which data plane proxy a policy applies to.
apiVersion: kuma.io/v1alpha1
kind: MeshTrace
metadata:
name: trace-west
namespace: kong-mesh-system
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: Dataplane
labels:
kuma.io/zone: west
default:
backends:
- type: Zipkin
zipkin:
url: http://west.zipkincollector:9411/api/v2/spans
apiVersion: httpJsontype: MeshTrace
name: trace-west
mesh: default
spec:
targetRef:
kind: Dataplane
labels:
kuma.io/zone: west
default:
backends:
- type: Zipkin
zipkin:
url: http://west.zipkincollector:9411/api/v2/spans
apiVersion: httpJsonAdjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_trace" "trace_west" {
provider = konnect-beta
type = "MeshTrace"
name = "trace-west"
spec = {
target_ref = {
kind = "Dataplane"
labels = {
kuma.io/zone = "west"
}
}
default = {
backends = [
{
type = "Zipkin"
zipkin = {
url = "http://west.zipkincollector:9411/api/v2/spans"
api_version = "httpJson"
}
}
]
}
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}