KubernetesIntermediate

Kubernetes Gateway API vs Ingress: Migrate in 2026

DeveloperHat Team
16 min read

TL;DR

Ingress NGINX is retired and unpatched since March 2026. Gateway API v1.4 is the GA successor — the resource model, the migration path, and when to stay put.

For a decade, the answer to "how does traffic get into my cluster?" was Ingress. That answer changed in March 2026, when the Kubernetes project archived the community ingress-nginx repository and stopped shipping patches for the controller running in roughly half of cloud-native environments. The Ingress API itself is not deprecated — it went GA in Kubernetes 1.19 (2020) and stays available with no removal planned — but the controller most teams actually ran is now unpatched, and the project's recommended successor is Gateway API, which reached v1.4.0 GA on 6 October 2025.

The short version: if you still run ingress-nginx, migrate — this is no longer a fashion choice, it is an unpatched component on your perimeter. If you run a different, maintained Ingress controller, migrate when you need what Gateway API adds (header-based routing, canary weights, multi-team ownership) and not before. If you are starting a new cluster, start on Gateway API. The rest of this article is the resource model, the head-to-head, the implementation choice, and the migration order that keeps production traffic up.

One request, four jobs — each owned by a different layer Client browser / API caller Gateway listeners :80 / :443, TLS HTTPRoute host + path match, filters Service A v1 — 90% of traffic Service B v2 canary — 10% The Gateway owns the port, the Route owns the match — and the split is what makes canary weights a one-line change.

Why this decision is suddenly urgent

The retirement timeline is short and fully public. On 11 November 2025, Kubernetes SIG Network and the Security Response Committee announced that ingress-nginx would enter retirement, with best-effort maintenance until March 2026. The final controller releases shipped on 19 March 2026 (v1.15.1), and the repository was archived and made read-only on 24 March 2026. The announcement's wording leaves no room for interpretation: after March 2026 there are "no further releases, no bugfixes, and no updates to resolve any security vulnerabilities that may be discovered." Existing deployments keep running and the artifacts stay downloadable — which is exactly the problem, because running is not the same as supported.

The security record is what turned a maintenance problem into a deadline. In March 2025 the IngressNightmare disclosures landed — five vulnerabilities, the worst of them CVE-2025-1974 at CVSS 9.8, an unauthenticated remote code execution through the controller's admission webhook that could lead to full cluster takeover. Those were patched. The ones discovered after March 2026 will not be: a further vulnerability reported in November 2026 (CVE-2026-116472, in the mirror-target annotation) was published with the statement that Kubernetes will not issue a fix. Google's own retrospective on the retirement puts the cause plainly — for years the project was maintained by one or two people in their free time, and repeated calls for contributors never brought enough help.

Two distinctions matter before you plan anything. First, the Ingress API is not the thing that died — only the community ingress-nginx controller. Your Ingress objects still work, and other controllers (F5/NGINX Inc's NGINX Ingress Controller, HAProxy, Traefik's Ingress provider, the AWS Load Balancer Controller) continue to be maintained. Second, the F5 NGINX Ingress Controller is a different product from the retired community one — same proxy, different maintainer, still supported in both its open-source and commercial forms. If you are on F5's controller, you are not on the retirement clock; if you are on kubernetes/ingress-nginx, you are. Check before you panic: kubectl get pods --all-namespaces --selector app.kubernetes.io/name=ingress-nginx tells you in seconds.

What Ingress actually is — and where it stops

Ingress is one object that does four jobs at once: it names the host and path, it picks the backend Service, it carries the TLS configuration, and — through controller-specific annotations — it carries every behaviour the API itself cannot express: rewrites, regex paths, canary weights, rate limits, authentication snippets, CORS. That last part is the design flaw that matters. Annotations are strings, unvalidated by the API server, interpreted differently by every controller, and invisible to kubectl explain. Move an Ingress from one controller to another and the annotations either change meaning or silently stop working. The API is also flat: one object, one namespace, no way to say "the platform team owns the port, the app team owns the route" — so in multi-tenant clusters the team that owns the Ingress owns everyone's routing, or everyone shares one object and steps on each other.

None of that made Ingress wrong for simple cases. A single Service behind a single host with a TLS certificate is still the thing Ingress does best, and it does it with the least YAML. The problems arrive with the second team, the second canary, and the first header-based routing rule — which is to say, they arrive in every cluster that grows up. Our guide to Kubernetes architecture covers where the Ingress controller sits in the control-plane picture; this article is about what replaces it.

The Gateway API resource model

Gateway API splits the four jobs across four resources, each with one owner. The split is the feature — it is what lets a platform team, a cluster operator, and an application team each change their own layer without a shared edit conflict.

GatewayClass names the infrastructure provider: "traffic in this cluster is served by Envoy Gateway" or "by Istio". The platform team installs it once per cluster. It is the only layer that knows which implementation is underneath, and it is the layer that makes switching implementations a GatewayClass change rather than a rewrite of every route.

Gateway is the operator's object. It binds to a GatewayClass, declares listeners (port 80, port 443, hostname, TLS mode), and gets an address — the load balancer IP or hostname. One Gateway can serve many routes from many namespaces, which is how a shared ingress point stops being a shared YAML file.

HTTPRoute is the application team's object. It attaches to a Gateway, matches on hostname and path (and, in v1.4, on headers and query parameters as standard behaviour), applies filters (request header modification, redirects, rewrites, mirroring), and names backends with weights. A canary is a second backend entry with weight: 10 — no annotation, no snippet, and the API server validates it.

Policy attachments fill the gaps the core resources deliberately leave open. BackendTLSPolicy — graduated to the Standard channel in v1.4 — configures TLS between the Gateway and backend pods. ReferenceGrant is the cross-namespace gate: a route in team-a's namespace can only point at a Service in team-b's namespace if team-b explicitly grants it, which is the multi-tenancy story Ingress never had. Timeouts and retries graduated to Standard in v1.2; named route rules, which let observability tooling refer to a single rule by name, graduated in v1.4. TCPRoute, TLSRoute, and UDPRoute stay experimental as of v1.4, as do the Mesh resource, default gateways, and the externalAuth filter — the GAMMA initiative's mesh work is the direction of travel, not the finished product.

Gateway API, layer by layer — one owner per layer GatewayClass — the infrastructure provider, picked once per cluster Gateway — listeners, TLS termination, addresses — the cluster operator HTTPRoute — host and path matching, filters, weighted backends — the app team Policy attachments — ReferenceGrant, BackendTLSPolicy, timeouts and retries Services and pods — the backends the traffic finally reaches Ingress put all five jobs in one object. Gateway API gives each one an owner — and a namespace boundary.

A Gateway and a route that does a weighted canary looks like this — and the whole point is how little of it is surprising:

apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
  name: public
  namespace: ingress
spec:
  gatewayClassName: envoy
  listeners:
    - name: https
      port: 443
      protocol: HTTPS
      hostname: "*.example.com"
      tls:
        mode: Terminate
        certificateRefs:
          - name: example-com-tls
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: checkout
  namespace: shop
spec:
  parentRefs:
    - name: public
      namespace: ingress
  hostnames: ["checkout.example.com"]
  rules:
    - matches:
        - path:
            type: PathPrefix
            value: /
      backendRefs:
        - name: checkout-v1
          port: 8080
          weight: 90
        - name: checkout-v2
          port: 8080
          weight: 10

Note what the YAML does not contain: no annotation carrying the routing logic, no snippet, nothing the API server cannot validate. The listener lives in the ingress namespace, the route lives in the shop namespace, and the parentRefs cross-namespace attach is explicit. If the route pointed at a Service in another team's namespace, a ReferenceGrant from that team would be required — a design decision, not an accident of shared YAML.

Head-to-head: Ingress vs Gateway API

IngressGateway API (v1.4)
Status, Nov 2026API GA and stable; community ingress-nginx controller retired Mar 2026v1.4.0 GA 6 Oct 2025; Standard channel production-ready
Routing modelOne object: host + path → ServiceGatewayClass → Gateway → Route → backends, with policy attachments
Header / method / query matchingVia controller annotations (non-portable)First-class matches in HTTPRoute
Canary / weighted trafficVia annotations (canary-weight)weight on backendRefs, validated by the API server
Multi-team ownershipOne object per namespace; no role splitGateway (operator) vs Route (app team), ReferenceGrant gates cross-namespace
TLS to backendsNot expressible in the APIBackendTLSPolicy (Standard since v1.4)
PortabilityAnnotations differ per controllerSame resources across 20+ conformant implementations
Learning costOne object, one afternoonThree resources + policy objects; a real half-day
Ecosystem maturityEvery controller supports itAll major controllers support it; experimental features vary by implementation

The honest summary: Gateway API is strictly more expressive, and strictly more to learn. For a single-team cluster with one host and a TLS certificate, Ingress remains the simpler tool — the extra resources buy nothing there. For anything with more than one team, more than one version in production, or routing rules beyond host and path, the Ingress annotation pile is the more expensive option, paid in unreviewable strings and migration pain.

Picking an implementation

Gateway API is a specification, not software — you still pick a controller, and the choice matters more than the API version. More than 20 conformant implementations exist; the ones to shortlist are the ones with a conformance profile that matches your traffic.

Envoy Gateway is the reference implementation from the Envoy community and the default pick for a plain Gateway API deployment — it translates the resources directly into Envoy configuration and tracks new Gateway API releases closely. Istio is the pick if you already run a mesh or expect to: the same control plane serves Gateway API at the edge and mesh traffic inside, and the GAMMA work lands there first. Cilium is the pick if you want the data plane in eBPF — strong on clusters already running Cilium for networking and network policy. Traefik and Kong are the picks if you are already running them as Ingress controllers, because both support Gateway API alongside their existing Ingress support and let you migrate route by route. F5 NGINX is the pick if your team already operates NGINX and wants its Gateway API support without changing proxies. AWS Load Balancer Controller is the pick on EKS if you want the Gateway to provision an AWS load balancer directly rather than running a proxy in-cluster.

Two checks before you commit. First, conformance is per-feature, not a single badge: the supportedFeatures field in GatewayClass status (new in v1.4) tells you which features your implementation actually supports — read it before you design around a feature your controller does not implement. Second, minimum Kubernetes version: Gateway API v1.1 and later need Kubernetes 1.26 or newer, so a cluster older than that needs an upgrade before the migration, not during it.

If you run a mesh today, read our service mesh vs API gateway comparison alongside this one — Gateway API and a mesh solve adjacent problems, and the GAMMA initiative is deliberately blurring the line between them.

The migration, in order

Migration risk is not the YAML conversion. It is the annotations: the ingress-nginx behaviours you rely on (regex paths, rewrites, canary weights, auth snippets) either change meaning or vanish under Gateway API, and the failure mode is a route that applies cleanly and routes wrong. The order below is the one that keeps production traffic up.

  • Inventory what you actually depend on. List every Ingress, every annotation, and what each annotation does. The canary annotations and snippet blocks are the ones that need a redesign, not a translation — a Lua snippet has no Gateway API equivalent, and that is a feature, not a gap.
  • Pick the implementation first, then convert. The converter output depends on the target: Envoy Gateway, Istio, and Cilium all implement the Standard channel, but their extended features differ. Choose, then run the community's ingress2gateway converter (which reached 1.0 in March 2026) against your Ingress objects — it handles the common cases and flags the rest.
  • Run both side by side. Deploy the Gateway with the converted routes on a test hostname, or behind a second load balancer, and mirror a slice of traffic. Compare responses, not just status codes: header behaviour, redirect targets, and TLS termination are where silent differences hide.
  • Cut over DNS per hostname, not per cluster. One hostname at a time, with the old Ingress still live behind the old address. Rollback is a DNS change, not a redeploy.
  • Delete the ingress-nginx controller only after the last hostname moves. The archived repository means no patches, so the controller's remaining lifetime is a risk you are choosing to carry — keep that window measured in days, and keep the deletion in the same change as the final cutover so it cannot be forgotten.
  • The multi-tenancy angle deserves its own callout: if your cluster hosts more than one team, the migration is also the moment to split ownership — Gateway in the platform namespace, routes in the team namespaces, ReferenceGrants where routes cross team boundaries. Our Kubernetes multi-tenancy guide covers the namespace and policy side of that split.

    The recommendation

    Decide by what routes your traffic today What routes traffic today? start from the controller, not the API ingress-nginx retired, unpatched Another Ingress maintained controller Greenfield cluster nothing to migrate Migrate now no patches since Mar 2026 Migrate on need header routing, canary, teams Start on Gateway API v1.4, Standard channel Only one branch is urgent. The other two are a choice you get to make on your own schedule.

    SituationRecommendationWhy
    Still on ingress-nginxMigrate now, on a deadlineUnpatched since Mar 2026; a reported Nov 2026 CVE has no fix coming
    On another maintained Ingress controllerMigrate when you need richer routingNo deadline, but header routing, canary weights, and multi-team ownership are real gains
    Greenfield clusterStart on Gateway API v1.4No migration cost, and the Standard channel is production-ready
    One Service, one host, one teamIngress is still fineThe extra resources buy nothing; revisit when the second team arrives

    Architecture Decision

    >

    Decision: Migrate the cluster's edge from ingress-nginx to Gateway API v1.4 on Envoy Gateway, with the Gateway in a platform namespace and HTTPRoutes owned by each application team.

    >

    Context: One platform team runs a multi-tenant cluster with twelve application teams. Ingress is served by community ingress-nginx, which was archived in March 2026 with no further security patches. Routing rules live in annotations — canary weights, rewrites, and two auth snippets — and every team's routes share Ingress objects the platform team edits by hand. A canary change last quarter took a full release cycle because nobody could tell which annotations were load-bearing.

    >

    Options considered: (a) Migrate to Gateway API v1.4 on Envoy Gateway. (b) Switch to F5's NGINX Ingress Controller, keeping Ingress objects and annotations. (c) Stay on ingress-nginx and pin the last release. (d) Adopt Istio and use its Gateway API support as the edge.

    >

    Why this one: Option (c) leaves an unpatched component on the perimeter with a reported post-retirement CVE and no fix — it is not a decision, it is a deferral with a blast radius. Option (b) is the lowest-effort fix and a legitimate fallback, but it preserves the annotation pile and the shared-object ownership problem that caused the canary delay. Option (d) buys a mesh the team does not need yet and adds a control plane to operate. Option (a) removes the unpatched controller, replaces annotations with validated API fields, and gives each team ownership of its own routes behind ReferenceGrants — which is the actual problem being solved.

    >

    What it costs you: A half-day of learning the three-resource model per engineer, a migration pass over every annotation (the two auth snippets need redesigning as filters or an external auth service), and a second load balancer during the side-by-side window. Extended features vary by implementation, so the design must be checked against the GatewayClass supportedFeatures field rather than assumed.

    >

    When to reverse it: If the cluster collapses to a single team and a single host, Gateway API's extra resources are overhead and a return to plain Ingress is defensible. If Envoy Gateway's extended features lag behind what the team needs, switching GatewayClass is the designed escape hatch — the routes stay the same. The reversal trigger is measured — route-change lead time and annotation count — not a new release announcement.

    When not to use Gateway API

    Do not migrate a single-host, single-team cluster just because the API is newer — the three-resource model is overhead with no payoff there, and Ingress will keep serving that host. Do not use Gateway API features from the experimental channel in production — retries, TCPRoute, TLSRoute, and BackendLBPolicy are candidates for graduation, not guarantees, and an experimental feature can change or disappear. Do not translate annotations mechanically: a snippet that injects Lua into NGINX has no Gateway API equivalent, and a line-by-line conversion that preserves the snippet's behaviour by bolting on a sidecar is worse than redesigning the rule as a filter. And do not migrate under a deadline you set yourself — the ingress-nginx deadline is real, but a rushed cutover with untested header behaviour is how a migration becomes an incident. Side-by-side first, DNS cutover second, deletion last.

    What to do next

    This week, find out where you stand before you plan anything:

  • [ ] Run kubectl get pods --all-namespaces --selector app.kubernetes.io/name=ingress-nginx — if it returns pods, you are on the retirement clock
  • [ ] Inventory every Ingress annotation and mark which ones are load-bearing routing logic vs cosmetic
  • [ ] Check your cluster version — Gateway API v1.1+ needs Kubernetes 1.26 or newer
  • [ ] Pick an implementation and read its GatewayClass supportedFeatures before designing around any extended feature
  • [ ] Convert one non-critical hostname with ingress2gateway, run it side by side, and compare responses before touching production DNS
  • Sources: the Kubernetes blog's Gateway API 1.4 announcement (v1.4.0 released 6 October 2025; BackendTLSPolicy, supportedFeatures, and named rules graduate to Standard), Google's retrospective on the Ingress NGINX retirement (announced 11 November 2025, maintenance ends March 2026, Ingress API itself not deprecated), AWS's NGINX Ingress retirement migration guide (about half of cloud-native environments affected, per vendor research), and a working migration checklist covering the retirement timeline and the November 2026 CVE published without a fix.

    Why This Matters

    Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.

    Trade-offs to Consider

    Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.

    When NOT to Use This

    Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.

    Decision Framework

    Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.

    Share this articleShare on XShare on LinkedIn

    Keep the decision frameworks coming

    One practical architecture guide a week — patterns, trade-offs, and when not to use them. No spam, unsubscribe anytime.