50.5% of requests to service backend from any service is going to be delayed by 5 seconds
50.5% of requests to service backend from any service is going to be delayed by 5 seconds
50.5% of requests to service backend from any service is going to be delayed by 5 seconds
apiVersion: kuma.io/v1alpha1
kind: MeshFaultInjection
metadata:
name: default-fault-injection
namespace: kuma-demo
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: Dataplane
labels:
app: backend
from:
- targetRef:
kind: Mesh
name: default
default:
http:
- delay:
percentage: '50.5'
value: 5stype: MeshFaultInjection
mesh: default
name: default-fault-injection
spec:
targetRef:
kind: Dataplane
labels:
app: backend
from:
- targetRef:
kind: Mesh
name: default
default:
http:
- delay:
percentage: '50.5'
value: 5sAdjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_fault_injection" "default_fault_injection" {
provider = konnect-beta
type = "MeshFaultInjection"
name = "default-fault-injection"
spec = {
target_ref = {
kind = "Dataplane"
labels = {
app = "backend"
}
}
from = [
{
target_ref = {
kind = "Mesh"
name = "default"
}
default = {
http = [
{
delay = {
percentage = "50.5"
value = "5s"
}
}
]
}
}
]
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}