Skip to main content
Networking & service meshLesson 9 of 11

Service Mesh ③ Mesh Gateway

Follow an external user's request into a Service inside the mesh. Here Istio's Gateway and VirtualService work as a pair.

Entry (Gateway)Not configured
Route (VirtualService)None
Inner hop-
UserExternal accessIngress proxyistio-gatewayProxySidecarshop appPodGatewayHost · portistiodPushes configVirtualServiceRoute rulesServiceshop
RequestResponse / reportWatchAppears in a later step

What you will learn

  • The difference between the Gateway resource (config) and the ingress proxy (runtime)
  • How a VirtualService attaches route rules to a Gateway
  • The ingress proxy sends straight to the sidecar
  • Where to look when the chain breaks
  • How it differs from Ingress

Try it yourself​

kubectl get pods -n istio-system -l istio=ingressgateway # Is the ingress proxy running?
kubectl get gateways.networking.istio.io -n shop -o yaml # hosts, port, selector, tls
kubectl get virtualservice -n shop -o yaml # gateways, hosts, route destination
kubectl get namespace shop --show-labels # Is istio-injection=enabled set?
istioctl analyze -n shop # Find broken links

Check yourself

  1. You created an Istio Gateway for shop.example.com but no VirtualService. What do external users get?
  2. How do you check that a VirtualService is linked to a Gateway?
  3. Requests pass the ingress proxy, but the target pods have no sidecar, so mesh rules do not apply on that hop. What should you check?

Further reading: Istio ingress gateways · Gateway reference · Ingress · Gateway API