Boundlayer
Kubernetes NetworkingGateway APIIngress MigrationPlatform EngineeringCloud Infrastructure

Kubernetes Ingress NGINX Migration to Gateway API: A Production Playbook

Migrate from retired Ingress NGINX safely: inventory annotations, choose a conformant Gateway API controller, validate behavior in parallel, and shift traffic with rollback ready.

12 min read

By BoundLayer Engineering Team

BoundLayer is a senior engineering partner for SaaS, fintech, AI automation, cloud infrastructure, legacy modernization, Web3, IoT, GPU computing, and data systems.

If your Kubernetes clusters still run Ingress NGINX, migration is now a security and operations task, not a future cleanup. The Kubernetes project retired Ingress NGINX on March 24, 2026. Existing deployments continue to run and their images remain available, but the project no longer receives bug fixes or security updates. The official retirement statement is explicit that alternatives are not drop-in replacements.

Gateway API is the Kubernetes project's modern, role-oriented networking API and one migration destination. Its v1.6 release made TCPRoute and UDPRoute part of the Standard channel, extending stable routing beyond HTTP and TLS. But Gateway API is an API, not a proxy or controller: teams still have to choose an implementation, map controller-specific behavior, and validate real traffic before changing DNS.

This guide lays out a safe migration path from Ingress NGINX to Gateway API, including how to use ingress2gateway, what the generated manifests cannot prove, and how to keep rollback available during traffic cutover.

First find every Ingress NGINX dependency

Start with a cluster-wide inventory, not a search for one Ingress manifest. Include Git repositories, Helm releases, cluster add-ons, generated manifests, and manually applied resources. A quick runtime check is:

kubectl get pods --all-namespaces \
  --selector app.kubernetes.io/name=ingress-nginx

Then record:

  • Ingress objects and their ingressClassName values;
  • Ingress NGINX annotations, ConfigMaps, snippets, and custom templates;
  • TLS secrets, certificate automation, and renewal ownership;
  • authentication, rate limits, CORS, rewrites, redirects, body-size, and timeout behavior;
  • source IP and forwarded-header handling;
  • websocket, gRPC, TCP, or UDP listeners;
  • health checks, metrics, access logs, dashboards, alerts, and autoscaling;
  • DNS records, load balancers, firewall rules, and WAF policies tied to the old controller.

Search the source repositories for nginx.ingress.kubernetes.io/, but verify against the live cluster too. Helm values and old annotations can leave behavior that is not obvious from the current application manifests.

Select a controller before converting configuration

Gateway API resources are reconciled by a controller. Different implementations support different combinations of features and extensions, and a conformant controller does not imply that every optional or vendor-specific feature is portable.

Build a requirements matrix from your inventory. Compare candidates on:

  • Gateway API release and conformance features required by your routes;
  • cloud load balancer or CNI integration and address allocation;
  • TLS certificate management and upstream TLS behavior;
  • authentication, authorization, rate limits, WAF, and observability extensions;
  • operational model, upgrade policy, support, cost, and failure domains;
  • multi-tenant controls and the way routes attach across namespaces.

Use the official Gateway API implementation and conformance reports to narrow the list, then test the exact controller version you intend to operate. Gateway API conformance validates specific API behavior; it does not certify your complete edge stack, vendor extensions, or all production traffic patterns.

Gateway API separates responsibilities. A cluster operator typically owns a GatewayClass and Gateway, which define the controller and traffic entry points. Application teams can own HTTPRoute resources attached to approved Gateways. This model can improve delegation, but only when Kubernetes RBAC, allowedRoutes, hostname policies, and cross-namespace references are deliberately constrained.

Convert as a starting point, not as proof

The Kubernetes SIG Network project provides ingress2gateway to translate Ingress resources and common controller-specific annotations. Its 1.0 release supports more than 30 common Ingress NGINX annotations, including examples such as CORS, backend TLS, regex matching, and path rewrites. It also reports configuration it cannot translate directly.

Use the tool to produce an initial inventory and candidate manifests. Do not apply the output blindly. The tool cannot decide whether a legacy behavior is still needed, whether a controller-specific extension is acceptable, or whether a default timeout is right for your workload. Review every warning and decide explicitly to preserve, replace, or remove each behavior.

Pay particular attention to:

  • regex paths and path precedence;
  • annotations that inject snippets or controller-specific directives;
  • default backend behavior and unmatched hosts;
  • request and response timeouts, buffering, and maximum body size;
  • auth subrequests, external authorization, and identity headers;
  • client IP preservation and trusted proxy chains;
  • TLS termination, SNI, certificate references, and backend TLS;
  • CORS, redirects, rewrites, websocket upgrades, and gRPC;
  • rate limiting, sticky sessions, health checks, and custom error handling.

The upstream Ingress migration guide explains where Ingress and Gateway API differ. Some features are core API fields; others depend on an implementation-specific policy or extension. Treat each dependency as a migration decision, not just a YAML conversion.

Run both controllers during validation

Do not remove Ingress NGINX as the first migration step. The Gateway API project recommends running a new controller alongside the existing one where possible. Each can use a separate external address, allowing teams to validate routes without changing the production listener.

For a representative service, test from outside the cluster and compare expected behavior against the old path:

  1. Host and path matches, including precedence and unmatched routes.
  2. Redirects, rewrites, headers, CORS, and query-string handling.
  3. TLS certificate selection, SNI, expiry monitoring, and backend TLS validation.
  4. Authentication, authorization, rate limiting, and error responses.
  5. Request size, buffering, timeouts, streaming, websocket, and gRPC behavior.
  6. Client address propagation, access logs, metrics, traces, and alert thresholds.
  7. Failure behavior when a route, backend, certificate, or Gateway is unavailable.

Compare observable outcomes rather than manifest shape. A valid HTTPRoute can still route to the wrong backend, inherit an unexpected listener policy, or use a controller default that changes customer-visible behavior.

Lock down the new routing boundary

Gateway API's role separation can reduce the need for application teams to edit shared edge configuration, but it creates new permission boundaries to define. Restrict who can create or modify Gateway and GatewayClass resources. Limit which namespaces can attach routes and which hostnames they can claim. Use narrowly scoped ReferenceGrant resources for cross-namespace references; avoid broad grants that expose every secret or backend in a namespace.

The Gateway API security guidance discusses hostname conflicts, route attachment, and the operational privileges involved in creating Gateways. Include these policies in admission checks and review them as part of the migration, rather than copying the old controller's trust assumptions into a new API.

Shift traffic gradually and keep rollback concrete

Once the candidate controller passes tests, choose a cutover mechanism supported by your infrastructure: weighted DNS, an external load balancer, or a supported traffic-splitting feature. Start with a low-risk service or a small percentage of traffic. Monitor request success, latency, TLS errors, 4xx/5xx rates, backend health, and edge resource utilization against the existing baseline.

Before increasing traffic, document:

  • the exact DNS or load-balancer change that moves traffic back;
  • who can execute the rollback and how quickly;
  • how certificates and secrets are synchronized during coexistence;
  • which old and new controller metrics decide whether to proceed;
  • what happens to long-lived connections during a switch;
  • the condition for deleting the old controller and its resources.

Keep the old path available until the new one meets the agreed service objectives through a representative operating period. Then remove stale Ingress resources, controller-specific configuration, external addresses, and credentials deliberately. Do not leave an unmaintained controller reachable simply because traffic has moved elsewhere.

Use Gateway API v1.6 deliberately

Gateway API v1.6, released on June 30, 2026, graduated TCPRoute and UDPRoute to the Standard channel. This is relevant if your cluster routes raw TCP or UDP traffic such as DNS, IoT telemetry, or other non-HTTP services. It does not mean every controller supports every feature combination: verify the version-specific conformance report and test your exact deployment.

The same release introduced XBackend in an experimental API group. Experimental APIs can change and should not be treated as stable production migration targets without an explicit acceptance of that risk. Prefer Standard-channel features for portable requirements; use extensions only where the selected implementation, support model, and future exit plan are understood.

A practical migration sequence

Days 1-3: Discover. Find every Ingress NGINX controller, route, annotation, dependency, and owner. Identify externally exposed clusters and routes with sensitive or high-volume traffic.

Days 4-7: Decide. Choose a controller using a feature and operations matrix. Confirm conformance, cloud integration, support, and policy requirements. Establish success metrics and a rollback owner.

Week 2: Convert and review. Run ingress2gateway, classify each annotation, resolve unsupported behavior, and review RBAC, route attachment, TLS, and namespace references.

Week 3: Validate in parallel. Deploy to a non-production cluster or separate production address. Replay representative requests and verify behavior, observability, failure handling, and capacity.

Week 4 and beyond: Cut over in stages. Shift a low-risk service or small traffic slice, monitor against baseline, expand gradually, and retain the rollback path until the new controller meets operational objectives.

The exact timeline depends on the number of clusters, extensions, and customer-facing routes. The retirement date has passed, so prioritize exposure and unsupported behavior rather than assuming existing pods will stop working on their own.

BoundLayer helps teams inventory Kubernetes networking, migrate controller-specific configuration, implement Gateway API routes and policy boundaries, and validate production cutovers. For broader cluster and cloud reliability work, see our AWS infrastructure audit and optimization guide and internal developer platform guide.

Sources

Still running Ingress NGINX in production?

We inventory controller behavior, select a compatible Gateway API implementation, migrate route and security policies, and validate a gradual cutover with a tested rollback path.

Free consultation

Get a Free 30-Minute Technical Consultation

Share a few details about your project and we'll get back to you within 48 hours with a clear next step.

  • No sales pressure — a senior engineer, not a sales rep
  • Clear next step within 48 hours
  • We can sign an NDA before we talk

By submitting, you agree to be contacted about your request. We respect your privacy and can sign an NDA on request.