devops9 min read

Migrating from Ingress-NGINX to Gateway API: Five Surprising Behaviors

6 similar posts
  • Ingress-NGINX
  • Gateway API
  • NGINX Ingress
  • httpbin
  • Istio
  • Envoy Gateway
  • Kgateway

AI Summary

As Kubernetes deprecates Ingress-NGINX, engineers migrating workloads face several hidden pitfalls regarding regular expression matching, case insensitivity, rewrite targets, trailing slash redirects, and URL normalization. This article explains these unexpected behaviors and demonstrates how to safely reproduce or refactor them using Gateway API alternatives.

Key Takeaways

  • Ingress-NGINX is deprecated as of March 2026 by the Kubernetes project.
  • Annotations like use-regex and rewrite-target can silently change path matching rules across entire hosts.
  • Gateway API provides explicit filtering and matching capabilities that prevent implicit transformations.

Why it matters

Understanding the subtle edge cases and default behaviors of legacy ingress controllers is vital for preventing production outages, broken client routing, and security anomalies during large-scale Kubernetes infrastructure migrations.

Conversation0

What would you add from your experience?

Checking your session…

Every good conversation starts with one perspective.