The following modification to a virtual service will inject an HTTP 400 code for 5% of the requests and abort instead of terminating to simulate a failure:
spec:
hosts:
- ratings
http:
- fault:
abort:
percentage:
value: 0.05
httpStatus: 400
route:
- destination:
host: ratings
subset: v1
Next, we'll discuss the service entry feature.