Turn tracing off for a subset of proxies
An empty backends list produces no tracing configuration, which exempts the selected proxies from a mesh-wide policy.
An empty backends list produces no tracing configuration, which exempts the selected proxies from a mesh-wide policy.
apiVersion: kuma.io/v1alpha1
kind: MeshTrace
metadata:
name: no-tracing-for-batch
namespace: kong-mesh-demo
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: batch
default:
backends: []type: MeshTrace
name: no-tracing-for-batch
mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: batch
default:
backends: []Adjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_trace" "no_tracing_for_batch" {
provider = konnect-beta
type = "MeshTrace"
name = "no-tracing-for-batch"
spec = {
target_ref = {
kind = "Dataplane"
labels = {
app = "batch"
}
}
default = {
backends = [
]
}
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}