To migrate AKS application routing from Ingress NGINX to Gateway API, inventory the old behavior, prepare the new routing path alongside it, verify the application through both paths, and move client traffic only after the checks pass. Retain the old path while you observe the change so rollback remains possible.

There is a time-sensitive reason to plan this work. Microsoft states that security-patch support for the Ingress NGINX-based application-routing add-on runs through November 2026. Upstream Ingress NGINX maintenance ended in March 2026. These dates concern specific controller implementations, not removal of the Kubernetes Ingress API. Microsoft's migration guidance.

This guide covers that managed AKS add-on and its application-routing Gateway API successor. It includes a routing example and an original cutover worksheet. The example's resource schema was checked locally; we have not executed an Azure migration or measured downtime. Check the current Microsoft requirements against your cluster before making changes.

First decide whether this implementation fits

AKS is Azure Kubernetes Service. The application-routing Gateway API implementation uses an Istio control plane to manage Gateway API resources, with the GatewayClass approuting-istio. It differs from the separate Istio service mesh add-on, which uses istio and supports additional mesh features.

Microsoft currently documents important limits: the application-routing implementation does not provide request header/body size controls, Lua scripts, or local/global rate limiting through the supported configuration. It also cannot be enabled alongside the Istio service mesh add-on. An existing requirement for those features can change the appropriate migration path. Review alternatives before enabling or removing components. Implementation limits and prerequisites.

Do not delete Istio custom resource definitions just to make an enablement command succeed. Removing a definition can delete its resources. Identify existing owners, workloads, and required behavior, then choose a supported transition with them.

Inventory routes and the clients that reach them

Start with read-only discovery in the intended cluster:

kubectl config current-context
kubectl get ingressclass
kubectl get ingress --all-namespaces
kubectl get nginxingresscontrollers.approuting.kubernetes.azure.com

Record each controller's ingress class and external address. A cluster may have more than one. For each hostname, capture paths, backend Service names and ports, TLS sources, annotations, redirects, authentication, timeouts, body limits, and streaming requirements.

Then record how clients reach that address. DNS may be one step in a longer path through Azure Front Door, another load balancer, a firewall, or a partner allowlist. A browser resolving the new address does not prove that an upstream system with a pinned old IP has moved.

The worksheet assigns an owner and a test to each behavior. For example, if an upload endpoint depends on a specific maximum body size, write down the expected outcome for bodies below and above that size. “Route exists” is too weak an acceptance criterion for that requirement.

Prepare the managed Gateway path

As checked on November 12, Microsoft's guide requires Azure CLI 2.86.0 or newer and the Managed Gateway API installation. Follow its version and cluster prerequisites rather than adding self-managed Gateway API definitions to an AKS cluster where that configuration is unsupported.

For an eligible existing cluster, Microsoft's documented enablement uses the following flags. Substitute the intended resource group and cluster, and perform this through your normal change process:

az aks update --resource-group "$AKS_RESOURCE_GROUP" --name "$AKS_CLUSTER" \
  --enable-gateway-api --enable-app-routing-istio

Enabling the implementation does not finish the application migration. Check the managed control plane and GatewayClass, then prepare the application's Gateway and routes. Existing clusters, new AKS Automatic clusters, and deployments using other ingress products can have different starting points; use the AKS Gateway API setup guide for those cases.

A GatewayClass selects the implementation. A Gateway defines listeners such as HTTPS on port 443. An HTTPRoute attaches matching traffic to a backend Service. Translating an Ingress therefore involves both listener ownership and application routing; controller-specific annotations need individual review. Gateway API migration concepts.

Translate one small route before expanding

The downloadable routing example describes a fictional tickets.practice.invalid hostname, an HTTPS listener, and an /api prefix routed to ticket-api on Service port 8080. It assumes the namespace, Service, managed class, and valid TLS Secret already exist. The .invalid hostname is illustrative and will not resolve through public DNS.

Its HTTPRoute portion is:

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: tickets-api
  namespace: esre-gateway-sample
spec:
  parentRefs:
    - name: tickets-edge
      sectionName: https
  hostnames:
    - tickets.practice.invalid
  rules:
    - matches:
        - path:
            type: PathPrefix
            value: /api
      backendRefs:
        - name: ticket-api
          port: 8080

The port is the Service's port, not automatically the container's port. The listener, route, and certificate hostname must agree. This example keeps the route, Service, and certificate in one namespace; cross-namespace designs add reference and attachment rules that must be considered separately.

After creating your adapted resources, inspect their current status:

kubectl -n "$ROUTING_NAMESPACE" get gateway "$ROUTING_GATEWAY" -o yaml
kubectl -n "$ROUTING_NAMESPACE" get httproute "$ROUTING_ROUTE" -o yaml

Check the relevant Gateway/listener conditions and the route's status for the intended parent, including acceptance and resolved references. Ensure reported conditions correspond to the current resource generation. Status can expose a missing backend, attachment problem, or certificate reference before a client test, but acceptance alone does not prove application correctness.

Validate HTTPS without changing public DNS

Complete TLS setup before moving HTTPS traffic. If the old add-on synchronized certificates from Azure Key Vault, configure the new implementation's certificate integration explicitly. The certificate source and its renewal path are part of the migration. AKS DNS and TLS configuration.

With the real hostname and a candidate IP, curl --resolve can connect to the new address while keeping the hostname used for HTTP and TLS. These examples issue a read-only request; replace /api/health with your application's actual safe endpoint:

curl --noproxy "$ROUTING_HOST" --connect-timeout 5 --max-time 15 \
  --resolve "${ROUTING_HOST}:443:${NEW_GATEWAY_IP}" \
  -i "https://${ROUTING_HOST}/api/health"

curl --noproxy "$ROUTING_HOST" --connect-timeout 5 --max-time 15 \
  --resolve "${ROUTING_HOST}:443:${OLD_INGRESS_IP}" \
  -i "https://${ROUTING_HOST}/api/health"

Keep certificate verification enabled. A successful direct-IP request using a different hostname can miss the certificate and virtual-host behavior that real clients depend on. If the organization uses a private certificate authority, configure its approved trust chain explicitly.

Compare response content, identity handling, and latency as well as status codes. Add safe tests for the actual route matrix: redirects, slash handling, uploads, authentication, and long-running connections. Use staging accounts and test data for state-changing operations, especially anything involving orders or payments.

Set cutover and rollback criteria before the switch

Consider a fictional ticket API with three routes. Health checks pass through both paths, but order creation fails on the new path because an authentication integration was omitted. The migration is not ready even if both Gateway resources report healthy conditions. Fix the missing behavior while the old path serves customers.

Write down the conditions that would stop or reverse the change. Examples include an application-specific error threshold, latency beyond the service objective, failed identity checks, or inconsistent results. Choose thresholds and an observation period from the service's demand and risk, rather than copying arbitrary numbers from a checklist.

DNS caching also needs a plan. If a record's previous time to live, or TTL, was one hour, reducing it immediately before switching does not erase answers already cached for that hour. Wait out the old cache window and account for clients or upstreams that do not use the same DNS path.

Microsoft's migration design uses separate old and new data-plane addresses. Move DNS and separately pinned upstream destinations through the approved change process. Keep watching request rates, errors, and latency on both paths, with checks of the customer actions the routes support.

Retire the old controller only after traffic drains

While the old controller, its address, and its intended configuration remain available, reverting clients to that path can be a rollback option. DNS reversal still takes time, and independently pinned upstreams need their own reversal. Verify that the old path retains enough capacity and compatible application behavior.

After the old infrastructure is removed, changing DNS alone cannot restore it. Treat cleanup as a later decision with evidence that old traffic has drained, forgotten integrations have been identified, and the new path has remained healthy under relevant demand. The Microsoft migration guide gives the implementation-specific retirement commands; review their scope before using them.

Use the cutover worksheet to record the decision and ownership. The release engineering guide covers rollout evidence and rollback compatibility, while the Kubernetes interview scenarios help practise investigating a route whose objects look healthy but whose requests fail.