Back to blog

Migrating from Ingress to Gateway API: Inspect, Convert, and Verify with Kubexer

November 17, 2026 9 min read Kubexer Team
Gateway APIIngressHTTPRouteEnvoy GatewayMigration

If you run Kubernetes traffic through an Ingress, you have probably seen the advice to move to the Gateway API. The Ingress resource still works, but it is a small, frozen spec: anything beyond host and path routing lives in controller-specific annotations that do not carry from one controller to the next. The Gateway API is the successor, with typed resources for the things annotations used to do. The migration itself is mostly mechanical. What is hard is doing it safely, with no outage, and being able to see what you built. This post covers how the two models map, what does not convert, and how to do the work in Kubexer.

Ingress versus Gateway API in one table

The Gateway API splits the single Ingress object into roles, so that platform teams and application teams can own different pieces:

  • GatewayClass names a controller implementation (Envoy Gateway, Istio, Cilium, Kong, and others). It plays the part of IngressClass.
  • Gateway is the listener: ports, protocols, hostnames and TLS. The platform team usually owns it. An Ingress carried this in its controller deployment and the tls section.
  • HTTPRoute (and GRPCRoute) holds the routing rules: hosts, path matches, filters such as redirects and rewrites, and weighted backends. Application teams own these, and they attach to a Gateway through parentRefs.

A Gateway can restrict which namespaces may attach routes, and a route in one namespace pointing at a Service in another needs an explicit ReferenceGrant. That is a real improvement over an Ingress, but it is also the place migrations most often stall.

How people migrate today

The usual route is the ingress2gateway command line tool: you point it at your Ingresses, it prints Gateway API YAML, and you review it by hand. That works, but a few things make the rest of the job tedious:

  • You still have to install the Gateway API CRDs and a controller, then check with kubectl get gatewayclass,gateway,httproute -A that everything is accepted.
  • A route that is not working shows up as conditions buried in kubectl describe output: Accepted, ResolvedRefs, per parent reference.
  • Controller-specific policy (timeouts, rate limits, auth) lives in yet another set of custom resources, and finding which policy applies to which route is a manual cross-reference.

Step 1: see what the cluster already has

When Kubexer connects to a cluster it checks whether the API group gateway.networking.k8s.io is served. If it is, a Gateway API group appears under Network, right below Ingresses and Ingress Classes, with four live tables: Gateway Classes, Gateways, HTTP Routes and GRPC Routes. On a cluster without the CRDs, the group is not shown. Kubexer uses the newest version the cluster serves for each kind (v1, then v1beta1, then v1alpha2).

  • The Gateway Classes table shows each class, its controller and whether it is accepted. If your class is not accepted, nothing else will work, so look here first.
  • The Gateways table shows class, addresses, listeners, attached routes and whether the Gateway is programmed.
  • The HTTP Routes and GRPC Routes tables show hostnames, parent Gateways, backend count and a health badge.

The health badge is computed from the route's per-parent status conditions, so the common failures read as words in the table: BackendNotFound when a backend Service does not exist, NoMatchingParent when the route did not attach to any listener, and so on. Open a route and its rules are rendered as matches, then filters, then weighted backends. Backends link to their Service, parents link to their Gateway, and a Gateway links to its GatewayClass, so you can follow a request path across objects with clicks instead of three kubectl get calls.

Step 2: convert an Ingress

Open any Ingress in Kubexer and choose Convert to Gateway API. The same action is in the right-click menu and in the Cmd/Ctrl+K palette (search for "gateway" or "migrate"). Suppose you have this Ingress:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: shop
  namespace: shop
  annotations:
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
  ingressClassName: nginx
  tls:
    - hosts: [shop.example.com]
      secretName: shop-tls
  rules:
    - host: shop.example.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: web
                port:
                  number: 8080

In the dialog you choose a target: attach to an existing Gateway (optionally to a specific listener), or let Kubexer generate a new Gateway with an HTTP listener plus one HTTPS listener per TLS entry, using your existing certificate Secret. You pick the GatewayClass, and Kubexer suggests one that matches your Ingress class name when it can. The result is a multi-document YAML, along these lines:

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: shop
  namespace: shop
spec:
  parentRefs:
    - name: shop-gateway
      sectionName: https
  hostnames: [shop.example.com]
  rules:
    - matches:
        - path: {type: PathPrefix, value: /}
      backendRefs:
        - name: web
          port: 8080
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: shop-https-redirect
  namespace: shop
spec:
  parentRefs:
    - name: shop-gateway
      sectionName: http
  hostnames: [shop.example.com]
  rules:
    - filters:
        - type: RequestRedirect
          requestRedirect: {scheme: https, statusCode: 301}

The exact names and fields depend on your Ingress and target (the Gateway document is generated too, and is not shown here). The converter handles the parts that are mechanical but easy to get wrong: one HTTPRoute per host, path types, named Service ports resolved to numbers, the default backend, and the ssl-redirect annotation turned into a real redirect route, only for hosts that are actually in spec.tls, which matches how ingress-nginx behaves. A rewrite-target without regex groups becomes a URLRewrite filter.

What it tells you it could not convert

This is the part that matters most. Annotations with no Gateway API equivalent are not silently dropped; they are listed as warnings. Examples the converter reports: a rewrite target that uses regex capture groups (Gateway API has no equivalent, so it is left out), a resource backend that is not a Service, a TLS entry with no secret, a named port it could not resolve, and every other annotation it did not translate. A canary Ingress gets a note telling you to merge its backends into the primary route as weighted backendRefs rather than create a second route. If the Gateway lives in a different namespace than the Ingress, it reminds you about allowedRoutes and the ReferenceGrant for the TLS Secret.

Review, validate, create

The YAML is editable in the dialog, with schema lint as you type. Validate runs a server-side dry run of every document. Create dry-runs everything first and only then creates the objects in order; it never overwrites an existing object and never touches the original Ingress. If a document fails midway, Kubexer tells you how many were created and stops, so you know exactly what to clean up. The converted objects carry a kubexer.io/converted-from annotation, and Helm, Argo CD and Flux ownership labels are not copied across, so your GitOps tooling does not try to adopt or prune them.

The converter is available to every plan. It works offline from the Ingress you open; only validation and creation need a cluster that serves the Gateway API.

Step 3: verify before you cut over

Because the old Ingress is untouched, both paths exist at once. Open the new route in the HTTP Routes table and check the health badge and the parent row: the route should be accepted by your Gateway with references resolved. Open the Gateway and confirm the listener shows the attached route and the Gateway has an address. Then test the new address directly (for example with curl --resolve) before you move DNS. If something is wrong, right-click the route: for unhealthy routes and Gateways the menu promotes Why is it failing?, which hands the route's status conditions to Kubexy, the AI assistant, to explain. That needs a Pro plan and your own AI key; the tables and the converter do not.

Envoy Gateway policies

If the cluster runs Envoy Gateway, Kubexer adds an Envoy Gateway group with tables for Backend Traffic Policies, Client Traffic Policies, Security Policies and Envoy Proxies, with readable summaries of their settings. More usefully, Gateway and route drawers get a Policies section that finds every policy targeting that object, including policies inherited from the parent Gateway and ones overridden by a policy on the route. That answers "why does this route time out at 15 seconds?" without cross-referencing targetRefs by hand.

Honest limits

  • The converter produces HTTPRoutes and, if needed, a Gateway. It does not generate GRPCRoutes, TLS or TCP routes, or controller-specific policy. Auth, rate limits, timeouts and custom snippets are listed as not converted, and you recreate them with your controller's policy resources.
  • Only the common ingress-nginx annotations are translated (ssl-redirect, force-ssl-redirect, simple rewrite-target). Other controllers' annotations are reported as unconverted.
  • The Envoy Gateway views are for Envoy Gateway only. Other implementations still show up under the vendor-neutral Gateway API tables, but their own policy kinds appear under the generic custom resources.
  • Kubexer does not move your traffic. DNS, load balancer addresses and the actual cutover are yours.

Wrapping up

The Gateway API gives routing typed, portable resources, and the conversion is mostly translation. The risky parts are the annotations that do not translate and not being able to see the result. Browse your Gateways and routes, convert one Ingress at a time, read the warnings, validate on the server, and check the health badge before you move DNS. If you want to try it on your own cluster, download Kubexer. For background on how Services and Ingress fit together, see Kubernetes Networking Essentials.