Interview › Istio & Service Mesh
How do you handle gradual migration of services into mTLS STRICT mode?
Istio & Service Mesh · Advanced level
Answer
For gradual migration to mTLS STRICT, I first enable the mesh in PERMISSIVE mode, identify all callers, verify that expected traffic uses mTLS, fix non-meshed clients, then apply STRICT at workload or namespace scope in waves.
Technical explanation
Do not switch a namespace to STRICT until batch jobs, cronjobs, external clients, probes, and legacy services are accounted for.
Use PeerAuthentication selectors for smaller blast radius when needed.
Monitor 503, TLS errors, and failed handshakes during each wave.
Hands-on example
Migration sequence:
1. PERMISSIVE namespace policy.
2. istioctl authn tls-check for important paths.
3. Enable STRICT for one workload selector.
4. Run smoke tests from every known caller.
5. Expand to namespace-level STRICT.
6. Add alert for plaintext attempts or handshake failures.
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 ensure the sidecar is ready before the app starts taking traffic?
- How do you drain connections gracefully during a rolling update with Istio?
- How do you test an AuthorizationPolicy before enforcing it (dry-run)?
- What is the role of the holdApplicationUntilProxyStarts setting?
- How does Istio support traffic mirroring (shadowing), and why is it useful?
- 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 does Istio interact with NetworkPolicies — do you need both?