Kubernetes Gateway API vs Ingress: The Future of Traffic Routing

Why the Gateway API is replacing Ingress: role-oriented resources (GatewayClass, Gateway, HTTPRoute), traffic splitting, header matching and migration tips.

Published December 1, 2026

For years, Ingress was the standard way to route HTTP traffic into Kubernetes. It was simple but limited, and every controller filled the gaps with its own annotations, making configurations non-portable. The Gateway API is its successor: an expressive, role-oriented and extensible set of resources now widely supported by ingress controllers, load balancers and service meshes.

The concept

Gateway API splits responsibilities across resources. A GatewayClass, managed by the infrastructure provider, defines a type of load balancer. A Gateway, typically managed by a platform team, instantiates listeners (ports, protocols, TLS certificates, hostnames). Routes such as HTTPRoute, GRPCRoute and TLSRoute, managed by application teams, attach to a Gateway and define matching and forwarding rules.

Features that needed vendor annotations in Ingress are first-class: matching on headers and query parameters, weighted traffic splitting for canaries, request and response header modification, redirects and URL rewrites, and cross-namespace routing with explicit permission via ReferenceGrant. Ingress still works and is not going away soon, but new features land in the Gateway API.

Gateway API resources

GatewayClassinfra provider: which controllerGatewayplatform team: listeners, TLS, hostnamesHTTPRoute / GRPCRouteapp teams: match rules, backendsServices → Podsworkloads
Role-oriented layering.

Ingress vs Gateway API

CapabilityIngressGateway API
Host and path routingYesYes
Header / query matchingAnnotations (non-portable)Built in
Weighted traffic splittingAnnotationsBuilt in (backendRefs weights)
TCP / UDP / gRPC routingNoYes (route types)
Role separationSingle resourceGatewayClass / Gateway / Route
Cross-namespace routingLimitedExplicit with ReferenceGrant

Traffic splitting

HTTPRoute /checkoutGatewayweighted splitcheckout-v1weight 90checkout-v2weight 10
Canary releases without vendor annotations.

Practical examples

A Gateway with HTTPS

Typically owned by the platform team.

apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata: { name: public, namespace: infra }
spec:
  gatewayClassName: example-class
  listeners:
    - name: https
      protocol: HTTPS
      port: 443
      hostname: "*.example.com"
      tls: { certificateRefs: [{ name: wildcard-cert }] }
      allowedRoutes: { namespaces: { from: All } }

An HTTPRoute with a canary split

Owned by the application team.

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata: { name: checkout, namespace: shop }
spec:
  parentRefs: [{ name: public, namespace: infra }]
  hostnames: ["shop.example.com"]
  rules:
    - matches: [{ path: { type: PathPrefix, value: /checkout } }]
      backendRefs:
        - { name: checkout-v1, port: 80, weight: 90 }
        - { name: checkout-v2, port: 80, weight: 10 }

Check route status

Conditions show whether the route was accepted.

kubectl get gateway,httproute -A
kubectl describe httproute checkout -n shop | sed -n '/Conditions/,$p'

Common mistakes

  • Assuming every controller supports every Gateway API feature; check its conformance level.
  • Migrating everything at once instead of route by route.
  • Forgetting ReferenceGrant for cross-namespace backend references.
  • Leaving old Ingress annotations-based behaviour undocumented during migration.

Key takeaways

  • Gateway API is the successor to Ingress with richer, portable routing.
  • GatewayClass → Gateway → Routes separates infra, platform and app concerns.
  • Header matching, traffic splitting and gRPC routing are built in.
  • Migrate incrementally and verify controller conformance.

FAQ

Is Ingress deprecated?

Ingress remains supported, but the community focuses new capabilities on the Gateway API.

Do I need a service mesh to use it?

No. Many ingress controllers and cloud load balancers implement Gateway API; meshes also use it for internal traffic.

How do I install the CRDs?

Gateway API CRDs are installed separately from Kubernetes core (often by your controller's installation or from the official release manifests).

More DevOps articles