Interview › Istio & Service Mesh
What is a common cause of 503 errors in Istio, and how do you diagnose it?
Istio & Service Mesh · Intermediate level
Answer
A common cause of 503 in Istio is that Envoy has no healthy upstream endpoints or no valid route to the selected subset. It can also come from mTLS mismatch, outlier ejection, gateway routing errors, or upstream connection failures.
Technical explanation
If a VirtualService routes to subset v2 but DestinationRule labels do not match any pods, Envoy can return 503.
Proxy access-log flags help narrow the class of issue: NR for no route, UF for upstream failure, UH for no healthy upstream, and RBAC for denied requests.
Always compare Kubernetes endpoints with Envoy endpoints.
Hands-on example
Diagnosis:
$ kubectl get endpoints backend -n app
$ istioctl proxy-config endpoints deploy/frontend -n app | grep backend
$ istioctl proxy-config route deploy/frontend -n app | grep backend
$ kubectl logs deploy/frontend -c istio-proxy -n app --tail=200Fix labels, subsets, readiness, or TLS policy based on the missing piece.
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
- How do you debug mTLS handshake failures between two services?
- Why might traffic bypass the sidecar, and how do you verify injection?
- What does istioctl analyze do?
- How do you exclude certain ports or IP ranges from sidecar interception?
- How do you use istioctl proxy-config and proxy-status to debug Envoy?
- How do you handle non-HTTP (TCP) traffic in Istio?
- What is the typical latency and resource overhead of the sidecar, and how do you minimise it?
- What is the difference between Istio and an API gateway?