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/
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 Istio, and what are the core capabilities it provides?
- What is the difference between the Istio control plane and data plane?
- What is istiod, and what does it do?
- What is Envoy, and what role does it play in Istio?
- What is the sidecar pattern, and how does Istio inject the proxy?
- How does automatic sidecar injection work (namespace label, webhook)?
- What is the Istio ambient (sidecarless) mode, and how does it differ from sidecar mode?
- What is the difference between ztunnel and a waypoint proxy in ambient mode?