External requests enter through the mesh entry
A user visits shop.example.com. Services in the mesh usually have cluster-internal addresses only, so you need a separate entry to accept external requests.
In Istio, a dedicated ingress proxy pod does this job. The istio-ingressgateway deployed with Istio is that entry.
The Gateway resource opens the door
A Gateway (the resource that accepts traffic from outside the mesh) lists the host names and ports to accept, plus a selector that picks which ingress pods it applies to.
The Gateway resource is only a config document. The ingress proxy starts accepting that host and port only after istiod pushes the config to the proxies matching the selector.
A VirtualService attaches route rules to that entry
Opening the door does not tell the Gateway where to send requests. A VirtualService names the Gateway and holds route rules such as "requests for shop.example.com go to the shop Service".
To check they are linked, see that the VirtualService lists the Gateway name under gateways and the same host under hosts.
Key ideaThe Gateway is the door, the VirtualService is the signpost. With only one of them, requests never reach their destination.
The destination is a Service name
The VirtualService destination names a Service (shop), not a pod. The pods the Service selects by label are what actually receive traffic.
istiod watches which pods the Service selects and tells the ingress proxy about that pod list.
The ingress proxy sends straight to the pod's sidecar
The ingress proxy picks one of the pods it knows and sends the request to that pod's sidecar. The entry is part of the mesh too, so this hop is encrypted with mTLS.
The sidecar receives the request and hands it to the shop app. Weighted routing and retry rules from the previous lesson work on this path as well.
Key ideaFor the receiving pod to have a sidecar, its namespace needs the istio-injection label.
Without a linked VirtualService, the entry turns requests away
If you create only the Gateway and no VirtualService, or the Gateway name or host does not match, the ingress proxy does not know where to send requests. It usually returns 404.
Run istioctl analyze to find broken links, such as a VirtualService that points to a missing Gateway.
Unlike Ingress, entry and routes are separate
An Ingress puts host, path, and target Service in one resource. A mesh gateway splits the entry (Gateway) from the routes (VirtualService), and once inside, sidecars, mTLS, and weighted routing take over.
Istio can also act as an Ingress controller, but Ingress resources and mesh Gateway resources are separate. The Gateway in the standard Kubernetes Gateway API is also a different resource from the mesh Gateway.
You need both the door (Gateway) and the signpost (VirtualService)
An external request passes the door the Gateway opened at the ingress proxy and the VirtualService route rules, then reaches the app through the sidecar of a pod the Service selects. Both resources are config that istiod pushes to the proxies.
When something breaks, trace in this order: the VirtualService linked to the Gateway, then its destination Service, then the injection label on the target namespace.
SummaryThe Gateway is the door, the VirtualService is the signpost, and the Service is the destination. Entry config is spread across several resources, so when blocked, check each link in order: Gateway → VirtualService → Service → sidecar.