March 2020
Intermediate to advanced
626 pages
14h 45m
English
Now, we will test the resiliency of the microservice by introducing the http abort rule for the end user, jason, for the ratings microservice:
# Script : 09-inject-http-abort-fault.yamlapiVersion: networking.istio.io/v1alpha3kind: VirtualServicemetadata: name: ratingsspec: hosts: - ratings http: - match: - headers: end-user: exact: jason fault: abort: percentage: value: 100.0 httpStatus: 500 route: - destination: host: ratings subset: v1 - route: - destination: host: ratings subset: v1
In the preceding code, we are introducing an http fault abort of 500 for the jason user for the ratings service.
Read now
Unlock full access