Ingress to Gateway migration
Know what is being retired
The Kubernetes Ingress API is frozen, not removed. The upstream community ingress-nginx controller was retired on March 24, 2026; it is not a suitable default for a fresh deployment. Other Ingress controllers and F5 NGINX products are distinct implementations with independent lifecycles. Gateway API is the recommended direction for new routing design, but it requires a supported controller, compatible CRDs and a suitable infrastructure profile. Choose from actual conformance reports and vendor release/security documentation rather than a brand name. No controller has been installed in this study.
Compare equivalent routing intent
The offline bookstore retains three paths and one hostname. Move the TLS and listener configuration to the Gateway, and the path rules to the HTTPRoute. Keep backend Service port numbers unchanged. A Namespace label permits the app team to attach only where intended. TLS Secret placement changes from shop-study to edge-study; issue or distribute the appropriate certificate through an approved process, never copy a real private key into a lesson. The old and new implementations may differ in rewrites, redirects, header processing, timeouts, authentication and client IP handling. Conversion utilities may help generate candidates but cannot certify behavior.
Ingress: class + host/path rules + TLS referenceGateway API: GatewayClass + Gateway listener/TLS + HTTPRoute rulesBoth: Service port 80 -> targetPort 8080Plan a version-scoped migration
Inventory IngressClass, resources, annotations, admission settings, certificate automation, DNS, backend protocols and health checks. Select a controller version with the required Gateway HTTPRoute conformance profile and confirm supported CRD bundle, platform and extended features. Record identity/RBAC and resource costs before creating infrastructure. In an approved lab, stage parallel routing with distinct addresses; use controlled client resolution rather than changing public DNS. Confirm allowed attachment and resolved references before any traffic switch. Avoid two controllers inadvertently claiming the same object or address.
Verify each security and behavior boundary
Build a matrix of positive and negative cases: exact and prefix paths, near misses, unknown hosts, expected redirects, authentication and authorization, certificate SAN and trusted issuer, upstream encryption if required, and backend response markers. For Gateway API, downstream listener TLS and upstream TLS are independent; BackendTLSPolicy is a separate API whose version and implementation support must be checked. Never disable verification to make a test pass. Use the same application version and controlled requests to compare old and new. Test status and content, not status alone.
Expected /api/health -> health markerExpected /api/books -> inventory markerExpected wrong certificate -> client rejectionExpected unauthorized route -> not attachedUse an evidence-based cutover gate
A production migration needs owner approval, explicit traffic-switch procedure, health/error and latency thresholds, rollback conditions, and time for DNS/cache effects. Keep the known-good route available until the new path has passed the acceptance window. A rollback restores the approved traffic destination and must be retested; it does not undo unrelated application or data changes. Retire old resources only after verifying no remaining traffic, dependency or retention requirement. For retired controllers, temporary rollback is a risk-managed emergency decision, not a long-term solution. No deployment, DNS change or public exposure is authorized here.
Complete the offline parity exercise
Read migration-cases.json and compare the old and new routing models. A case passes the simplified offline gate only when matching intent, current conditions, certificate validation, application checks, required policy checks and rollback readiness are all true. Explain which evidence is still needed for a real migration. The checker cannot test TLS or proxy behavior; all observation booleans are synthetic inputs.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Ingress to Gateway migration — knowledge check
Interpret offline HTTP routing and migration evidence.
Which component was retired on March 24, 2026?
What should be checked when translating controller annotations?
Which check demonstrates frontend TLS trust?
What does a successful HTTP 200 alone fail to establish?
What is a safe cutover prerequisite?