Kubernetes (K8s) (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)
Ingress Controllers vs. Kubernetes Gateway API.
senior LevelMost AskedKubernetesSystem DesignHTTP & REST APIs
In Simple Words:
- Ingress (Legacy Standard):
- Manages external HTTP/HTTPS routing into services using hostnames and paths.
- Limitations: Tightly coupled; single manifest defines both routing rules and infrastructure configuration; poor support for non-HTTP protocols, header manipulation, or multi-tenant delegation.
- Kubernetes Gateway API (Modern Replacement):
- Decouples roles into three distinct resources:
GatewayClass: Managed by Cloud/Cluster Infrastructure Providers (e.g., Istio, Envoy, Cilium).Gateway: Managed by Platform Ops (defines IP, TLS certificates, listening ports).HTTPRoute/GRPCRoute/TCPRoute: Managed by Application Developers (defines paths, traffic weights, header rewriting).
- Native support for Canary weighted routing, multi-cluster gateways, and gRPC routing.
- Decouples roles into three distinct resources: