In March 2026, the classic ingress-nginx controller reaches the end of its lifecycle. For a decade, it served as the go-to standard for Kubernetes traffic routing, but the project has hit its limits. Years of architectural compromises, recurring vulnerabilities from configuration-snippet directives, and limited maintainer capacity have closed the chapter on monolithic Ingress. Taking its place is the Kubernetes Gateway API standard, with Envoy Gateway as one of its flagship controllers.
Moving production straight onto the new controller without a plan can turn into a minefield. Teams that copy their old manifests over mechanically often double their cloud bills and break TLS termination overnight. Using a real production migration by engineer Mijndert Stuij as a guide, let's look at why Gateway API requires a mindset shift, how to avoid extra load balancers, and why nginx annotations split into typed policies.
The Per-Service Gateway Trap and Shared Infrastructure
The most common mistake when starting with Gateway API is treating Gateway as a direct replacement for Ingress. In many teams, every microservice's Helm chart included its own Ingress manifest. When developers drop a Gateway into every service chart the same way, infrastructure costs explode.
In Gateway API, a Gateway resource represents a physical network entry point. Creating one tells the controller to request a separate cloud load balancer (such as an AWS NLB or ALB). As a result, a project with 30 services suddenly spawns 30 cloud load balancers. That drives up costs, fragments external IP addresses, and blurs ownership.
The right architecture uses the strict separation of roles built into Gateway API:
- Infrastructure platform: The SRE team creates just two shared gateways (
shared-publicfor external internet traffic andshared-privatefor internal calls) in theenvoy-gateway-systemnamespace. - Application services: App charts only define lightweight
HTTPRouteresources that attach to the shared gateway viaparentRefs.
Cross-Namespace Access and ReferenceGrant
Separating roles exposes a second issue: handling TLS certificates. The old ingress-nginx controller ran with broad privileges and could read a certificate Secret from any user namespace.
Diagram of Envoy Gateway securely accessing a TLS certificate Secret across namespaces using a ReferenceGrant resource
Gateway API enforces a stricter security model. By default, the shared-public gateway in envoy-gateway-system cannot read secrets outside its own namespace. If certificateRefs points to a Secret in default, Envoy Gateway refuses to mount the key and reports ResolvedRefs: False.
To allow safe cross-namespace references, Gateway API introduces ReferenceGrant. Placement matters here: you must create the ReferenceGrant in the exact namespace that holds the target resource (the certificate). By doing so, the namespace owner explicitly allows the gateway to read that specific secret.
Here is the platform shared gateway manifest in envoy-gateway-system:
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: shared-public
namespace: envoy-gateway-system
spec:
gatewayClassName: envoy-gateway
listeners:
- name: http
port: 80
protocol: HTTP
allowedRoutes:
namespaces:
from: All
- name: https
port: 443
protocol: HTTPS
tls:
mode: Terminate
certificateRefs:
- group: ""
kind: Secret
name: domain-wildcard-cert
namespace: default
allowedRoutes:
namespaces:
from: All
And here is the ReferenceGrant manifest in the default namespace:
apiVersion: gateway.networking.k8s.io/v1beta1
kind: ReferenceGrant
metadata:
name: domain-cert-grant
namespace: default
spec:
from:
- group: gateway.networking.k8s.io
kind: Gateway
namespace: envoy-gateway-system
to:
- group: ""
kind: Secret
name: domain-wildcard-cert
HTTPRoute Anatomy: The sectionName Trap and Clean Redirects
Once the gateway is running, developers attach routing rules. An HTTPRoute links to the gateway through parentRefs, and this is where the sectionName field can trip you up.
sectionName targets a specific listener on the gateway, such as http or https. If you make a typo in the listener name, the controller may still accept the resource with Accepted: True, yet no traffic reaches your service, leaving you digging through packet dumps for hours.
The second detail is HTTP-to-HTTPS redirection. In ingress-nginx, you used the ssl-redirect: "true" annotation. In Gateway API, a redirect is a full routing rule. You create a separate HTTPRoute attached to the http listener on port 80 and use a RequestRedirect filter with status code 301.
Main application route manifest:
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: example-app-httproute
namespace: production
spec:
parentRefs:
- name: shared-public
namespace: envoy-gateway-system
sectionName: https
hostnames:
- "app.example.com"
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: example-app-service
port: 3000
Automatic HTTP-to-HTTPS redirect manifest:
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: example-app-https-redirect
namespace: production
spec:
parentRefs:
- name: shared-public
namespace: envoy-gateway-system
sectionName: http
hostnames:
- "app.example.com"
rules:
- filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
Splitting Annotations into Typed Envoy Policies
Monolithic Ingress suffered from annotation sprawl. Timeouts, body size limits, CORS rules, and basic auth all lived together in one unstructured YAML map.
Envoy Gateway splits these settings into clearly typed objects:
ClientTrafficPolicy: Controls client connection behavior at the gateway edge (keep-alive timeouts,client_max_body_size, TCP buffering) at the platform level.BackendTrafficPolicy: Attaches to a service and defines upstream behavior, including response timeouts, connection pools, and retry budgets.SecurityPolicy: Handles application-level route protection, such as token orbasicAuthauthorization, CORS rules, and mTLS checks.
This breakdown makes configurations clear and verifiable. Manifest tools validate field types against an OpenAPI schema, catching typos before deployment.
Canary Rollouts with Argo Rollouts and Dual-Stack Migration
When you switch to Envoy Gateway, Argo Rollouts canary annotations stop working. To integrate with Gateway API, use the rollouts-plugin-trafficrouter-gatewayapi plugin, which updates weights inside HTTPRoute backendRefs. Add ignoreDifferences to your ArgoCD chart so dynamic weight changes don't show up as out-of-sync drift.
For a zero-downtime migration, use a dual-path strategy:
- Temporarily enable both
ingress.enabled: trueandgateway.enabled: truein your service values to run parallel routing. - Test service availability against the new Envoy Gateway IP using
curlwith an explicitHostheader. - Once warmed up, point your domain's DNS CNAME record to the new load balancer.
- Watch latency metrics for 24–48 hours. When everything looks stable, set
ingress.enabledtofalseand remove the old controller.
Bottom Line: Who Should Migrate Now
Moving from ingress-nginx to Envoy Gateway is an unavoidable step in Kubernetes networking. The old controller has run its course, and Gateway API is now a mature standard with clean permission boundaries.
The golden rule is simple: don't copy your Ingress layout one-to-one. Build shared gateways, use ReferenceGrant for certificate access, and break annotations into typed policies. That gives you cleaner networking, lower cloud bills, and a more reliable production setup.




