Which TWO fields are required when configuring an 'abort' fault injection in a VirtualService?
Trap 1: maxDuration
Not part of the abort specification.
Trap 2: grpcStatus
Not required if using HTTP status.
Trap 3: delay
Delay is a separate fault type.
- A
httpStatus
An abort fault must return an HTTP error code to the caller, and httpStatus supplies that code, which the Envoy filter uses to short-circuit the request. Without it the abort action has no response status to send, so the fault cannot be injected.
- B
maxDuration
Why it fails: Not part of the abort specification.
- C
grpcStatus
Why it fails: Not required if using HTTP status.
- D
delay
Why it fails: Delay is a separate fault type.
- E
percentage
The percentage field defines what proportion of matching requests receive the abort, expressed as a value. It satisfies the requirement to scope the fault rather than failing every request, letting you inject errors into only a fraction of traffic.