Ingresses
🚀 What It Does
Ingress is a Kubernetes API object that manages external access to services within a cluster, typically over HTTP or HTTPS. It acts as a smart router that directs incoming traffic to the appropriate service based on rules you define.
🧩 Key Features
- Path-based routing: Route traffic based on URL paths (e.g.,
/api
→ service A,/web
→ service B). - Host-based routing: Route based on domain names (e.g.,
api.example.com
→ service A). - TLS termination: Handle HTTPS traffic and manage SSL certificates.
- Centralized access control: Apply authentication, rate limiting, and other policies at the edge.
⚙️ How It Works
- You define an Ingress resource with routing rules.
- An Ingress Controller (like Nginx, Traefik, or cloud-native ones) watches for these rules and configures the underlying load balancer or proxy.
- External traffic hits the Ingress Controller, which then routes it to the correct Service, which in turn forwards it to the appropriate Pods.