Skip to content

Why Gateway API?

Interactive Diagram

새 탭 ↗

The Kubernetes Ingress resource has long been the standard for L7 traffic management, but it has fundamental limitations:

  • Lack of expressiveness: Header-based routing, traffic splitting (weight), mirroring, etc. are not in the standard spec, requiring annotation hell to implement
  • Implementation lock-in: Annotations like nginx.ingress.kubernetes.io/... only work with specific Ingress Controllers → no portability
  • No role separation: Infrastructure operators and application developers must modify the same resource
  • Limited cross-namespace backend references: Ingress cannot directly reference a Service in another namespace through its standard API

Gateway API is the successor API to Ingress, designed by Kubernetes SIG-Network. Kubernetes recommends Gateway, but does not plan to remove the existing Ingress API.

  • Role-oriented: Infrastructure provider → Cluster operator → Application developer, with resources separated by role
  • Portable: CRD-based standard spec, resources remain the same even when switching implementations (Envoy, Istio, Traefik, etc.)
  • Expressive: Header matching, traffic splitting, mirroring, etc. expressed natively without annotations
  • Extensible: Each implementation can provide its own extension resources (EnvoyProxy, SecurityPolicy, etc.)
CategoryIngressGateway API
Role separationSingle resourceGatewayClass (infra) → Gateway (ops) → HTTPRoute (dev)
Header routingannotationNative support
Traffic splittingannotationNative weight-based
Cross-namespaceCannot directly reference a Service in another namespaceRoute→Gateway attachment uses parentRefs + allowedRoutes; Route→Service in another namespace requires a ReferenceGrant in the target namespace
PortabilityImplementation-dependentCommon spec; check extension features and support in each implementation
ProtocolsHTTP/HTTPS onlyHTTP, gRPC, TCP, UDP, TLS

These are two separate cross-namespace approvals. For a Route to attach to a Gateway in another namespace, the Gateway listener’s allowedRoutes must permit it. For an HTTPRoute backendRefs entry to point to a Service in another namespace, the owner of the Service’s namespace must create a ReferenceGrant there. Approval of the former does not automatically authorize the latter. See the Gateway API security model.

PlantUML Diagram

Gateway API consists of 4 Stable APIs:

ResourceRoleOwner
GatewayClassDefines a group of gateways with common configuration, designates controllerInfrastructure provider
GatewayDefines the traffic-handling infrastructure instance (load balancer)Cluster operator
HTTPRouteDefines HTTP traffic routing rulesApplication developer
GRPCRouteDefines gRPC traffic routing rulesApplication developer
GatewayClass (Infrastructure)
└── Gateway (Operations — listeners, TLS)
└── HTTPRoute (Development — host, path, backend)

Operational Case: A Declared Route Is Not a Successful Request

Section titled “Operational Case: A Declared Route Is Not a Successful Request”

A common misconception when adopting Gateway API is that traffic will flow as soon as an HTTPRoute resource exists. An actual request passes through Gateway API resource status, the Envoy data plane, and the backend Service and Endpoint in sequence. Instead of treating the problem as one undifferentiated “HTTPRoute does not work” failure, separate it first by the layer that owns the failing point.

LayerDecision it ownsSignal used to judge healthWhat a failure at this layer means
GatewayClassWhich controller manages the GatewayThe controller accepts the classController installation or class-connection problem
GatewayListener, TLS, allowedRoutesGateway listener is Programmed and AcceptedData-plane creation, listener, certificate, or route-admission-scope problem
HTTPRouteHostname, path, backendRefsParent and backendRefs show Accepted and ResolvedRefsparentRef, hostname, namespace delegation, or backend-reference problem
Backend ServiceDelivery to the actual workloadEndpoint is ready and Envoy access logs show an upstreamSelector, port, readiness, or application-response problem

Route binding example: HTTPRoutes in namespaces A and B attach to a shared Gateway in the infra namespace while namespace C uses a dedicated Gateway Source: Gateway API docs, API Overview, The Kubernetes Authors, Apache-2.0

This table does not only split roles on paper; it separates who must change what during an incident. Cluster operators own Gateway listeners and allowedRoutes, while application teams own the HTTPRoutes and backend Services in their namespaces. An application team cannot resolve a Route namespace that allowedRoutes rejects merely by editing its Route.

Verification order when a Route exists but traffic does not flow

Section titled “Verification order when a Route exists but traffic does not flow”

The following order generalizes the boundaries used in an Envoy Gateway NodePort validation environment. Resource names and ports differ by environment, so verify status and relationships rather than copying the example values unchanged.

  1. Check GatewayClass and Gateway first. Confirm that the controller accepts the GatewayClass and that the Gateway listener is Accepted and Programmed. Until that is true, fixing an HTTPRoute or backend cannot prepare the external listener.
  2. Check the HTTPRoute parent status. Confirm that parentRefs point to the intended Gateway and section, the Route namespace is permitted by the Gateway’s allowedRoutes rule, and the hostname is compatible with the listener hostname.
  3. Check backendRefs. Inspect the Route’s ResolvedRefs status, the backend Service port, and Endpoint readiness. A Route can be accepted while still being unable to deliver a request because its Service name or port is wrong. If the backend is in another namespace, also check that a ReferenceGrant in that namespace allows this Route’s namespace and kind to reference the Service.
  4. Check the data plane’s actual receive path. NodePort, Service port, and the Envoy Pod’s targetPort do not need to be the same value. Confirm that the port Envoy actually listens on matches the targetPort selected by the Service.
  5. Read the request together with the access log. Compare the request Host or :authority, the selected upstream_host, and response_code_details. A via_upstream response means the Route reached the backend, so investigate the upstream application or proxy configuration before the Gateway.
Terminal window
# Confirm that the Gateway controller and listener accepted the configuration
kubectl get gatewayclass,gateway -A
kubectl describe gateway <gateway-name> -n <gateway-namespace>
# Confirm the HTTPRoute parent and backend-reference status
kubectl get httproute -A
kubectl describe httproute <route-name> -n <application-namespace>
# Only for a backendRefs Service in another namespace: inspect its grant
kubectl get referencegrant -n <backend-namespace>
kubectl describe referencegrant <grant-name> -n <backend-namespace>
# Confirm backend readiness (for same-namespace refs, use application-namespace)
kubectl get svc,endpoints -n <backend-namespace>
# Confirm that the Envoy data plane is connected to its external Service
kubectl get svc,ds -n <gateway-namespace>

These commands are not merely for collecting status. The first two stages separate Gateway API control-plane acceptance, while the last two separate data-plane and backend execution state. Even if kubectl get looks healthy, validation is incomplete until an actual Host request is sent and the selected upstream is confirmed in the Envoy access log.

Gateway API is not always an immediate migration target. A bulk migration is risky when an existing Ingress has accumulated implementation-specific annotations and you have not verified that standard HTTPRoute resources or implementation policies can represent them equivalently. Also, allowedRoutes.namespaces.from: All is convenient for a shared Gateway but may allow Routes from every namespace to attach. Use from: Selector with namespace labels to define the actual tenant boundary. For a name-based allowlist, select the kubernetes.io/metadata.name label; there is no separate explicit-namespace-list from option. See the Gateway API security model.

The next step in this series is Envoy Gateway Setup, which separates controller and data-plane placement, followed by HTTPRoute Routing and Validation, which verifies the backend and access log path.


Community ingress-nginx retirement versus F5’s controller

Section titled “Community ingress-nginx retirement versus F5’s controller”

The retirement concerns the Kubernetes community’s kubernetes/ingress-nginx. In November 2025, SIG Network and the Security Response Committee announced best-effort maintenance through March 2026 and no further releases, bug fixes, or security updates afterward. Existing installs continue to run and artifacts remain available, but operators should consider migrating to an alternative controller or Gateway API.

  • F5 NGINX Ingress Controller is separate from community ingress-nginx and is not covered by that retirement announcement. The Kubernetes migration guide also distinguishes the two.
  • F5’s controller supports both NGINX Open Source and commercial NGINX Plus. Active Health Checks, JWT Validation, and some Session Persistence methods are Plus features; do not conflate their availability with the community controller’s support lifecycle.
  • The official retirement announcement cites too few maintainers and security/maintenance burdens such as snippet annotations. It does not establish a general claim about response delays for specific incidents or reload performance in every environment.
  • Before migrating, verify the real behavior of annotations, path matching, and rewrites. Similarly named features can behave differently in Ingress-NGINX and Gateway API.
  • Kubernetes recommends Gateway, and the Ingress API is feature-frozen. This does not mean the Ingress API itself is being removed.
  • The community ingress-nginx retirement plan is not an EOS announcement for all Ingress APIs or F5’s product.

Gateway API is the standard; there are multiple implementations:

ImplementationData PlaneCharacteristics
Envoy GatewayEnvoyCNCF, lightweight, fine-grained control via EnvoyProxy CR
IstioEnvoyService mesh integration, heavy
TraefikTraefikOwn proxy, middleware chains
CiliumeBPFNetwork layer integration, high performance
NGINX Gateway FabricNGINXF5, NGINX-based Gateway API implementation

In this blog series, we validate using Envoy Gateway.

Conclusion: For new deployments, check the chosen Gateway API implementation’s actual feature support. If you use community ingress-nginx, validate existing behavior and migrate gradually to Gateway API or another maintained Ingress controller.