Interview › Istio & Service Mesh
What is outlier detection, and how does it eject unhealthy hosts?
Istio & Service Mesh · Basic level
Answer
Outlier detection is Envoy's mechanism for identifying unhealthy upstream endpoints and temporarily ejecting them from the load-balancing pool. In Istio, it is configured in a DestinationRule under trafficPolicy.outlierDetection.
Technical explanation
It can react to consecutive 5xx responses, gateway errors, local-origin failures, or success-rate based signals depending on configuration and protocol.
Ejected hosts are not removed forever; they are reintroduced after the ejection time, then evaluated again.
It complements Kubernetes readiness probes but catches runtime failures visible from client traffic.
Hands-on example
Troubleshoot ejection:
$ istioctl proxy-config clusters deploy/frontend -n app -o json | grep -i outlier
$ kubectl logs deploy/frontend -c istio-proxy -n app | grep -i outlierThen correlate with destination pod logs and readiness status.
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 mutual TLS (mTLS), and how does Istio provide it automatically?
- What are timeouts in Istio, and how do they interact with retries?
- How do you inject delays or aborts to test resilience with Istio?
- What is a PeerAuthentication policy?
- What is fault injection in Istio, and why would you use it?
- What is a RequestAuthentication policy, and how does it validate JWTs?
- How does Istio do request routing based on headers or paths?
- What is an AuthorizationPolicy, and how do you enforce service-to-service access control?