Interview › Istio & Service Mesh
How would you restrict which external services workloads can reach with Istio?
Istio & Service Mesh · Intermediate level
Answer
I restrict external access by using REGISTRY_ONLY outbound policy, defining approved external destinations with ServiceEntry, routing sensitive traffic through egress gateways, and enforcing Kubernetes or cloud network controls so workloads cannot bypass the mesh.
Technical explanation
ServiceEntry creates an allowlist at the mesh layer.
AuthorizationPolicy can restrict which service accounts are allowed to call specific egress paths.
External access should be reviewed like firewall rules: owner, business justification, destination, port, data classification, and expiry.
Hands-on example
Example controls:
Allowed: payments service account -> api.payment-provider.com:443 through egress gateway.
Denied: any namespace -> random internet host.
Validation:
$ kubectl exec deploy/payments -- curl https://api.payment-provider.com
$ kubectl exec deploy/payments -- curl https://example.orgThe second request should fail or be blocked.
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 enforce that all traffic leaving the mesh goes through an egress gateway?
- What is locality-aware load balancing, and why does it help latency and cost?
- Does the data plane keep working if the control plane goes down, and why?
- How does Istio handle multi-cluster service discovery at a high level?
- What is the difference between a primary-remote and a multi-primary multi-cluster setup?
- How do you measure the performance impact of enabling Istio?
- What is the Kubernetes Gateway API, and how is Istio adopting it?
- How do Istio Gateways relate to the Kubernetes Gateway API?