Fault Injection
On Universal:
On Kubernetes:
apiVersion: kuma.io/v1alpha1
kind: FaultInjection
mesh: default
metadata:
name: fi1
sources:
- match:
kuma.io/service: frontend
version: "0.1"
kuma.io/protocol: http
- match:
kuma.io/service: backend
kuma.io/protocol: http
conf:
abort:
percentage: 50
delay:
percentage: 50.5
value: 5s
responseBandwidth:
percentage: 50
FaultInjection
policy available only for L7 HTTP traffic, kuma.io/protocol: http
is mandatory tag both for the destination selector.
HTTP Faults
At least one of the following Faults should be specified.
Abort
httpStatus
- HTTP status code which will be returned to source sidepercentage
- percentage of requests on which abort will be injected, has to be in [0.0 - 100.0] range
Delay
Delay defines configuration of delaying a response from a destination.
value
- the duration during which the response will be delayedpercentage
- percentage of requests on which delay will be injected, has to be in [0.0 - 100.0] range
ResponseBandwidth limit
ResponseBandwidth defines a configuration to limit the speed of responding to the requests.
percentage
- percentage of requests on which response bandwidth limit will be injected, has to be in [0.0 - 100.0] range