Kubernetes Ingress
A Kubernetes L7 API resource that routes external HTTP/HTTPS traffic to internal cluster Services based on hostnames and URL paths while managing TLS termination
Table of Contents
Structure Diagram
What is Kubernetes Ingress?
A Kubernetes L7 API resource that routes external HTTP/HTTPS traffic to internal cluster Services based on hostnames and URL paths while managing TLS termination. It is a core concept in Containers & Orchestration within Cloud / DevOps.
Core Principles
Kubernetes Ingress exposes multiple internal cluster Service objects through a single external L7 HTTP/HTTPS entry point, routing traffic by hostname and URL path while handling TLS termination—avoiding the cost of provisioning a separate cloud load balancer per service.
The Ingress resource itself is purely declarative; an Ingress Controller (such as NGINX, AWS Load Balancer Controller, or Traefik) watches Ingress objects in the cluster and reconciles the underlying proxy or cloud ALB dynamically.
Practical Takeaways
- Automate HTTPS with
cert-manager: Pair Ingress withcert-managerto automatically issue and renew Let's Encrypt or private CA certificates with zero manual intervention. - Evaluate Kubernetes Gateway API: Traditional Ingress relies heavily on vendor-specific annotations for advanced routing (canary weights, header matching). For new multi-team platforms, adopt the successor Gateway API (
Gateway+HTTPRoute). - Configure explicit limits: Set request body size limits, upstream timeouts, and IP allowlists explicitly rather than relying on controller defaults.
Notable Examples
- Ingress-NGINX & Traefik: Battle-tested in-cluster reverse proxy controllers for cloud and on-prem Kubernetes.
- AWS Load Balancer Controller: Reconciles Kubernetes Ingress objects directly into managed AWS Application Load Balancers.
- Gateway API (Envoy / Cilium): Provides role-oriented, annotation-free L7 routing and native traffic splitting.