Legacy ingress migration
Inventory behavior before changing controllers
Start with sanitized manifests, controller version and edition, ConfigMap defaults, class ownership, TLS references, Service exposure and actual observed application responses. Preserve source material for audit, not for fresh installation of the retired project. Separate portable Ingress fields from community-specific annotations and snippets. Do not copy raw snippets into the target; replace necessary behavior with supported structured settings and have a security reviewer examine the remaining gaps. F5 has expanded legacy annotation support in some releases, but compatibility depends on version and feature. The table below is a fictional inventory, not a claim that every annotation translates.
Requirement Legacy setting / observationUpstream inactivity proxy-read-timeout: "30"Routing Prefix /catalog; query preservedTLS catalog.example.test; trusted chainAccess Application authorization; trusted edge identityStreaming WebSocket /catalog/liveTranslate behavior and units
The community timeout annotation uses seconds in this example. The F5-specific annotation uses a duration string; the candidate 30s preserves the intended inactivity interval, not a whole-request deadline. Confirm exact semantics, defaults and precedence against the selected F5 version. Some rewrites, regex paths and authentication settings require different resources or application changes. CORS, cookies, redirect status codes and source IP handling must be verified explicitly. Do not declare a migration complete because a renamed annotation is accepted.
# Alternative F5 annotation fragment (not a complete object)metadata: annotations: nginx.org/proxy-read-timeout: "30s"Design a parity test matrix
Use a separate, privately reachable target controller with distinct class ownership. Keep backend application versions and test data fixed. Compare expected status, redirect location, upstream request path, query, certificate hostname, auth decisions, real IP evidence and WebSocket upgrade. Observe timeout cases using a bounded test fixture, and compare responses rather than assuming equivalent defaults. The synthetic rows below express acceptance requirements; they are not results. In the packaged offline lab each row must have a unique ID, expected behavior and verification method.
GET /catalog → 200 catalog markerGET /catalogue → must not reach catalogGET /catalog?q=tea → backend sees q=teaGET /catalog/private → 401 without approved credentialsTLS catalog.example.test → trusted chain + matching hostnameWebSocket /catalog/live → 101 then expected echoCut over with a rollback decision
Deploy the reviewed target only in a separately authorized environment. Check class isolation, events, certificate readiness, status and endpoint health; run parity tests before switching a bounded traffic fraction. Compare error rate and latency against explicit thresholds, and stop if authorization or TLS regressions occur even at low traffic. DNS TTL and existing connections can delay a switch. Keep a documented, security-reviewed temporary rollback route and deadline; do not make a retired controller the permanent fallback. Remove legacy resources only after traffic drains, owners approve, and secrets and endpoints are inventoried. Never delete unrelated classes or shared CRDs as cleanup.
Gate 1: resource acceptance and private readinessGate 2: route, TLS and authorization parityGate 3: limited traffic and observed error budgetGate 4: approved cutover, drain and scoped cleanupPractice and verification
Practice: Use inventory.json and parity.json. Define evidence for each case, rollout gates and a scoped rollback. Decide whether the synthetic untested candidate may cut over.
Expected reasoning: Reject cutover until all mandatory behavior checks pass; security regressions block release; keep reviewed temporary rollback, drain and remove only owned resources.
These examples are staged offline; exact controller release, CRD schemas, admission and runtime behavior are unverified.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Legacy ingress migration
Assess controller selection and migration decisions.
What is the migration unit to preserve?
What is a candidate F5 duration for a 30-second inactivity setting?
How should raw legacy snippets be handled?
Which failure blocks cutover even with low error rates?
When should legacy resources be removed?