Skip to main content
Networking & service meshLesson 11 of 11

Three Entry Points Compared (Ingress · Mesh Gateway · Gateway API)

A Kubernetes cluster has three main ways to accept external requests. Send one request down each path in turn and compare who handles what on each path.

Current path—
Resource that routes—
API group—
Kubernetes clusterExternal reqshop/apiIngressOne rule sheetMesh entryIstio GatewayVirtual serviceVirtualServiceGatewayGateway APIHTTPRouteRoute rulesServiceapi
RequestWatchAppears in a later step

What you will learn

  • All three paths end at a Service
  • Ingress puts the entry and the routes on one sheet
  • A mesh gateway must be paired with a VirtualService
  • The Gateway API splits entry and routes between different owners
  • The two resources named Gateway are different resources

Try it yourself​

kubectl describe ingress -n shop # Ingress: hosts, paths, and backends
kubectl get gateways.networking.istio.io,virtualservices -n shop # Mesh path: gateway and VirtualService pair
kubectl get namespace shop --show-labels # Is istio-injection=enabled set?
kubectl get gatewayclass # Gateway API controller
kubectl get gateways.gateway.networking.k8s.io,httproutes -n shop # Standard Gateway and routes

Check yourself

  1. You created an Istio Gateway for shop.example.com, and requests reach it but never get to the api Service. What should you check first?
  2. You switch an Ingress to a different controller implementation, and its timeout setting quietly stops working. Why?
  3. An app team creates an HTTPRoute in its own namespace, but it never attaches to the platform team's Gateway. What is most likely?

Further reading: Ingress · Gateway API · Gateway API docs · Istio traffic management