Skip to content
New Atlanta
Topics

Kubernetes Gateway API vs Ingress

Keep Ingress for a supported, single-team HTTP endpoint, or use Gateway API when listener ownership and routing policy need separate controls.

Published 8 min read
Ingress controller selection
IngressClass
Gateway controller selection
GatewayClass
Gateway HTTP routing rules
HTTPRoute
Gateway TLS termination
HTTPS listener certificate reference

Decision guide

Ingress
Keep a working Ingress when its controller is supported for the life of the application and host, path, and TLS behavior already match the service contract.
Gateway API
Choose Gateway API for a shared listener when a platform team owns certificates and addresses while application teams need to deploy routes independently.
Deciding factor
Prove that the exact controller release can reproduce the requests your clients send, including redirects and error paths, before changing the advertised address.

Comparison matrix

Where each API records controller selection, HTTP routing, and TLS Verified
Decision factorIngressGateway API
Controller selection IngressClass GatewayClass
Host and path handling Ingress spec HTTPRoute
Certificate attachment Ingress TLS secret reference HTTPS listener certificate reference

Will the controller run this configuration?

Choose a controller and a supported release before choosing the resource format. Kubernetes has frozen the Ingress API and recommends Gateway API for new functionality. An existing Ingress still depends on its controller’s own maintenance and support commitments.

The first inventory entry should name the component that receives a public request. On one cluster that may be an in-cluster proxy behind a cloud load balancer. On another it may be a provider-managed load balancer configured by a controller. Record the controller image or managed release, the class name, and the region or cluster where the application will run. Two clusters accepting identical YAML can have different providers, load balancer settings, or implementation support.

Check the implementation’s conformance report for the release you can actually install. Match the route type and the individual features used by this service. Core HTTP routing support alone gives little information about an extension used for a rewrite or an application timeout. Record the installed Gateway API resource versions alongside that report. Installing resource definitions makes manifests recognizable to the Kubernetes API server. A controller still has to watch the selected class, reconcile a Gateway, and provide a working address.

Translate one request before copying the rest

Consider an Ingress for orders.example.com. It accepts HTTPS and sends the /orders prefix to port 8080 on the checkout Service. Preserve those three details as a single test case.

In the target layout, a Gateway supplies an HTTPS listener for the orders hostname. Give the listener a name so the application can attach its HTTPRoute to that specific listener through its parent reference. The route carries the hostname, a PathPrefix match for /orders, and a backend reference to the Service and its Service port. If port 8080 is only the container’s target port and the Service exposes port 80, the reference must use 80. Derive it from the Service object you plan to deploy.

Write down the expected results for /orders, /orders/42, and /orders-history. The final request tests the path boundary. A path-element prefix for /orders should match the first two without sending the third to checkout. Include any default backend and its expected response in the comparison. An old catch-all that returned a branded maintenance page can be part of the client contract even though it never appears on the happy path.

Who can attach a route to the public listener?

Place the Gateway with the team responsible for the address and certificate. Use listener attachment rules to identify which application namespaces may contribute routes.

Suppose the platform team maintains a Gateway in edge and the checkout team owns the route and Service in orders. The listener can select eligible namespaces by label. The route references the Gateway in edge and names the intended listener. Put the backend Service in the route’s namespace for this first migration and keep the TLS certificate with the Gateway. The application team can then change a backend port without also changing a shared certificate or editing another service’s routing rules.

Attachment permission and backend-reference permission answer different questions. If the checkout route later names a Service in inventory, that Service’s namespace must grant the cross-namespace reference through a ReferenceGrant for the applicable source and target. Expanding the listener’s allowed namespaces alone cannot grant that permission. Ask the owner of the destination namespace to review the grant and confirm that the requested service name is the intended one.

Which annotations change what a client receives?

Classify each existing annotation by its observed effect. Record an equivalent standard field, a documented implementation feature, or a behavior that still needs a test.

A redirect and a rewrite can look similar during a manifest review. For a redirect, the client should receive a redirect status and a Location header. For a rewrite, the backend receives a transformed request while the client keeps the original address. Capture both the client response and the upstream path for a representative request. A health probe that checks only for a successful status code will miss a route sending the wrong path to a permissive backend.

Inspect any annotation that changes request size, timeouts, headers, or backend protocol independently. Document the specific controller setting and where its policy attaches. A gateway-wide timeout could affect a long-running report even if the orders endpoint behaves correctly in isolation. Agree with the report owner on a representative request duration before moving multiple applications behind that listener. Keep any route with an unresolved requirement on its existing entry point until its behavior can be reproduced.

Prove attachment and traffic on the candidate address

Inspect the Gateway and the route’s status for the intended parent. Compare each relevant condition’s observed generation with the current object generation before treating it as evidence for this revision.

For the Gateway, check acceptance, its address, and whether configuration has been programmed. For the HTTPRoute, find the parent entry that names your Gateway and controller. Check Accepted and ResolvedRefs, then read the reason and message on any false condition. A valid route can still point to a Service with no ready application endpoints. A status message about a nonexistent backend port and a response from an unhealthy application call for different fixes.

Before changing public DNS, send a request for the production hostname to the candidate listener. With an IP address, a local client-side resolution override can preserve both the HTTP host and TLS server name. Verify the certificate chain with the usual trust settings. Compare a known order path, an unmatched path, and the redirect behavior with the original entry point. Use a read-only request and a response marker unique to the checkout application. This catches the case where a default backend returns a convincing success page.

How long must the old route stay available?

Keep the original entry point serving while traffic moves. Choose the observation period from DNS caching, connection reuse, and the service’s own traffic pattern.

Record the addresses, DNS time to live, and the last configuration known to work before making the change. During the transition, compare request counts and errors by endpoint and hostname. A drop on the old listener is useful only when the new listener sees the corresponding requests. Watch one low-frequency operation as well as the busiest endpoint, especially if it uses a different path, header, or upstream timeout.

If a route fails its acceptance case, send new traffic back to the previous address and keep the candidate available while cached clients drain. Record the specific request and revision that failed. Remove the old Ingress, certificate bindings, and load balancer only after its remaining consumers have been accounted for. If the original controller serves other applications, retire only the migrated host’s configuration.

Frequently asked questions

Does upgrading Kubernetes convert existing Ingress objects?

Treat migration as an explicit release. Select a Gateway API implementation, create its resources, compare the new endpoint with the existing one, and switch traffic after both serve the expected requests.

Can two teams share one IP address and still release routes independently?

Yes, when the chosen implementation supports the listener setup and the Gateway owner permits both namespaces to attach. Assign hostname ownership and document which team changes the certificate, listener rules, and each route.

Methodology and sources

The comparison uses Kubernetes Ingress documentation and Gateway API guidance on migration, attachment permissions, conformance, and status, checked December 3, 2026. The orders service is a worked migration example. Provider charges, controller-specific defaults, and observed response times depend on the deployment.

About Evan Pritchard
Infrastructure & Kubernetes Architecture Writer

Editorial pen name. Covers infrastructure as code, cluster upgrades and application runtime migrations.