FIELD NOTESAZURE · KUBERNETES

The Gateway API on AKS: three gateways, one choice

Application Gateway for Containers runs the proxy outside your cluster; the application routing and Istio add-ons run Envoy inside it, one upgrading itself and one waiting for you. What each runs, what it refuses, and when to choose it.

By Space Toucan4 min readPublished
ON THIS PAGE
The Gateway API on AKS: a user reaches the same Service through one of three gateways, Application Gateway for Containers outside the cluster programmed by the ALB Controller, or an Envoy gateway inside it from the application routing add-on or the Istio add-on. Drawn in archhy.

On AKS the Gateway API comes in three managed forms, and the choice between them is really a choice about where your proxy runs and who upgrades it. Application Gateway for Containers runs the data plane outside your cluster, as an Azure resource. The application routing add-on and the Istio add-on both run Envoy pods on your own nodes; the first upgrades itself, the second waits for you. If you have no reason to choose otherwise, start with application routing: it is the default on new AKS Automatic clusters from Kubernetes 1.36, and it is the successor Microsoft names for the managed NGINX add-on, whose Azure support ends after November 2026.

All three read the same Gateway and HTTPRoute objects, so the routing you write carries over. What differs is the cost, the failure modes and how much of the proxy you are allowed to touch.

First, the CRDs are managed too#

Each option expects AKS to own the Gateway API definitions themselves, through the Managed Gateway API installation. Two details catch people out. Only the standard channel is allowed: if you installed the experimental channel to try an alpha feature, you must remove it before AKS will take over. And the bundle version follows your Kubernetes version, so a cluster upgrade can move you to a newer Gateway API without anyone asking. On 1.36 that is v1.5.1.

Shell
az aks update -g $RG -n $CLUSTER --enable-gateway-api --enable-app-routing-istio
# or: --enable-azure-service-mesh  (Istio add-on)
# or: --enable-application-load-balancer  (Application Gateway for Containers, add-on in preview)

Application routing: Envoy you never upgrade#

Turning this on installs an Istio control plane that does one job: it watches Gateways of class approuting-istio and runs a Deployment of Envoy behind an Azure load balancer for each one, with an autoscaler that starts at a minimum of two replicas and a disruption budget that keeps one up. There are no sidecars and no Istio resources. AKS picks the Istio version from your Kubernetes version and upgrades it in place, patches and minor versions alike.

The price of that convenience is a closed proxy. There is no EnvoyFilter, so anything the Gateway API has no field for is out of reach: request body and header size limits, rate limiting, Lua. If your ingress-nginx annotations include limit-rps or proxy-body-size, check them first, because this is where a migration from managed NGINX stalls.

The Istio add-on: the same proxy, with the keys#

The Istio service mesh add-on serves Gateways of class istio with much the same machinery, and you can use it for ingress alone without injecting a single sidecar. What you gain is EnvoyFilter, which is how you get the missing limits back (Azure allows it but does not support what it breaks), and a path to a full mesh later. What you take on is the upgrade: minor revisions are canary upgrades that you start and finish yourself, even when the mesh is only your front door.

The two cannot run together on one cluster, and moving from Istio to application routing means deleting the istio.io CRDs, which deletes every VirtualService and DestinationRule with them. Decide before you have built on one.

Application Gateway for Containers: the proxy leaves the cluster#

Here the data plane is an Azure service. The ALB Controller in your cluster watches Gateways of class azure-alb-external and programs a gateway that Azure runs, scales and patches, with WAF policies, mutual TLS, JWT validation and routing for self-hosted inference servers built in. The proxy never runs on a node you pay for or have to drain.

It asks more of the cluster in return: Azure CNI or CNI Overlay, workload identity, and a subnet delegated to the service. Listeners accept ports 80 and 443 only, so a TCP or custom-port service needs another path. It is billed as its own resource on Application Gateway pricing. And decide early who owns the Azure side: in the managed mode the ALB Controller creates the Azure resources, a frontend per Gateway, and owns their lifecycle, while in bring-your-own mode they are created and deleted outside Kubernetes, by whoever runs your Terraform or portal.

Choosing#

  • Application routing when you want ingress to be somebody else's upgrade and your routing fits inside the standard.
  • The Istio add-on when you need a proxy setting the standard does not have, or you expect to want a mesh.
  • Application Gateway for Containers when a WAF is required, when you would rather not spend node capacity on ingress, or when the platform team wants the front door managed as Azure infrastructure.

The same decision on the other clouds is in the Gateway API on EKS and on GKE. If you are coming from ingress-nginx, its retirement options sets out the wider choice, and the Gateway API for Ingress users explains the objects.

The diagram#

One user, three ways in: Application Gateway for Containers outside the cluster, programmed by the ALB Controller, and the two Envoy gateways inside it, all routing to the same Service. Drawn in archhy: open it in archhy and press Make a copy to adapt it.