Sub topic 2
Why migrate and what the Gateway API changes
This chapter assumes you know Pods, Services, Namespaces and kubectl. It also assumes you have used an Ingress resource with an Ingress controller, and can read YAML manifests.
Why migrate
The Kubernetes project announced that the community Ingress NGINX controller (kubernetes/ingress-nginx) is being retired. Best-effort maintenance ended in March 2026. After that date it gets no new releases, bug fixes or security patches. Existing deployments keep running, but any new vulnerability stays unpatched. That is the main reason to plan a move now.
This retirement affects only that controller. The Ingress API itself is not removed, and other controllers still implement it. The Ingress API is frozen, though, and new routing features go into the Gateway API.
Limits of Ingress that drove the redesign
- Annotations carry advanced behavior. Ingress only models hosts, paths and TLS. Redirects, rewrites, canary splits and timeouts live in controller-specific annotations such as
nginx.ingress.kubernetes.io/ssl-redirect. These annotations are not portable. They are also free-form strings with no schema validation. - One resource serves every role. A developer who edits an Ingress can also change TLS and listener behavior that the platform team may want to control.
- Only HTTP and HTTPS are modeled. Other protocols need custom resources or controller-specific workarounds.
What the Gateway API changes
The Gateway API splits the work across resources, each owned by a different role.
| Resource | Typical owner | Purpose |
|---|---|---|
| GatewayClass | Infrastructure provider | Names the controller implementation |
| Gateway | Cluster operator | Defines ports, protocols and TLS settings |
| HTTPRoute | Application developer | Defines host, path and backend rules |
Features that needed annotations are now typed fields in the spec. Examples are redirect filters and backend weights. The API server validates these fields, and different implementations are meant to behave the same way for them.
Two other changes matter for migration:
- Attachment is explicit. A route names its Gateway in
parentRefs. The Gateway decides which namespaces may attach routes throughallowedRoutes. Both sides must agree. - Status is richer. Resources report conditions such as
AcceptedandResolvedRefs. You will use these to verify the migration later.
What does not carry over automatically
The Gateway API is not a drop-in replacement. Annotations do not convert one to one. Some map to standard fields, and others have no portable equivalent and need implementation-specific policies. The later chapters on annotation mapping and ingress2gateway cover this. Also, the Gateway API is a set of CRDs, so you must install them and choose a controller that implements them.
Exercise
Name two Ingress limitations that the Gateway API addresses, and say which role owns the Gateway resource.
Show answer
Advanced behavior such as redirects and canary weights depends on non-portable, unvalidated annotations, and one Ingress resource mixes the concerns of every role. The Gateway API uses typed fields and splits resources by role. The Gateway is owned by the cluster operator.