Interview › Istio & Service Mesh
How do you inject delays or aborts to test resilience with Istio?
Istio & Service Mesh · Basic level
Answer
Delays and aborts are configured under the fault section of a VirtualService HTTP route. A delay pauses matched requests before forwarding; an abort returns a configured error directly from the proxy.
Technical explanation
Use percentage fields to limit blast radius.
Use header matching so only test traffic is affected.
Always validate that retries, timeouts, and application fallback behavior interact as expected.
Hands-on example
Delay example:
fault:
delay:
percentage:
value: 10
fixedDelay: 2s
Abort example:
fault:
abort:
percentage:
value: 5
httpStatus: 503
Test:
$ curl -H 'x-chaos-test: true' http://checkout/Preparing for an interview?
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Istio & Service Mesh interview questions
- What is fault injection in Istio, and why would you use it?
- How does Istio do request routing based on headers or paths?
- What are timeouts in Istio, and how do they interact with retries?
- What are subsets in a DestinationRule, and how are they used?
- How do you implement a blue-green deployment using Istio?
- What is outlier detection, and how does it eject unhealthy hosts?
- What is mutual TLS (mTLS), and how does Istio provide it automatically?
- How do you do weighted traffic splitting for a canary release in Istio?