Interview › Istio & Service Mesh
What is a Gateway resource, and how does it differ from a Kubernetes Ingress?
Istio & Service Mesh · Basic level
Answer
An Istio Gateway configures an Envoy gateway proxy to accept traffic on specific ports, hosts, and TLS settings. Kubernetes Ingress is a simpler Kubernetes API for HTTP ingress, while Istio Gateway gives Istio-native control and is often paired with VirtualService for detailed routing.
Technical explanation
A Gateway selects gateway pods by label and describes what traffic those proxies should listen for.
A VirtualService then binds to that Gateway and defines routing to internal services.
For newer designs, Kubernetes Gateway API is increasingly preferred because it standardizes Gateway and route resources across implementations.
Hands-on example
Ingress pattern:
apiVersion: networking.istio.io/v1
kind: Gateway
metadata:
name: public-gw
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: app-tls
hosts: [app.example.com]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 a DestinationRule, and how does it relate to a VirtualService?
- What is the difference between an Istio ingress gateway and an egress gateway?
- What is a VirtualService, and what does it control?
- How does traffic flow through an Envoy sidecar for inbound and outbound requests?
- How do you do weighted traffic splitting for a canary release in Istio?
- What is the difference between ztunnel and a waypoint proxy in ambient mode?
- How do you implement a blue-green deployment using Istio?
- What is the Istio ambient (sidecarless) mode, and how does it differ from sidecar mode?