Interview › Istio & Service Mesh
How do you ensure the sidecar is ready before the app starts taking traffic?
Istio & Service Mesh · Advanced level
Answer
I ensure the sidecar is ready before traffic by using Istio's proxy readiness integration, Kubernetes readiness probes, and, for workloads that make early outbound calls, holdApplicationUntilProxyStarts or equivalent proxy-start ordering. The service should not receive traffic until both app and proxy are ready.
Technical explanation
If only the application readiness is checked, Kubernetes may send traffic before Envoy has listeners and clusters.
Istio can rewrite HTTP probes so health checks work through sidecar interception.
For strict startup dependencies, hold the app until the proxy starts to avoid bootstrap failures.
Hands-on example
Validation:
$ kubectl describe pod <pod> -n app | grep -A5 Readiness
$ kubectl get pod <pod> -n app -o jsonpath='{.status.containerStatuses[*].ready}'
$ kubectl logs <pod> -c istio-proxy -n app | grep -i readyRun a rolling restart while a client sends continuous requests and check for startup 503s.
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 drain connections gracefully during a rolling update with Istio?
- How do you handle gradual migration of services into mTLS STRICT mode?
- What is the role of the holdApplicationUntilProxyStarts setting?
- How does Istio support traffic mirroring (shadowing), and why is it useful?
- How do you test an AuthorizationPolicy before enforcing it (dry-run)?
- How do you observe and reduce the error rate of a specific service via the mesh?
- What is the difference between L4 and L7 policy enforcement in the mesh?
- How do you secure the Istio control plane itself?