The big picture · wrap-up
Cheat sheet & self-check
Every command from this section on one page.
Hops and their jobs
DNS | Name → address; GeoDNS can return a nearby or healthy region |
CDN / edge network | Nearest point of presence (anycast); caching; first TLS termination |
WAF + DDoS protection | Block attacks and floods before they reach your network |
Load balancer | Spread connections over gateway replicas; health checks |
API gateway | Routing, authentication, rate limits, retries, timeouts, logs per API |
Service mesh | Service-to-service mTLS, retries, metrics inside the cluster |
Headers that record the journey
X-Forwarded-For | Client IP, plus each proxy that forwarded the request |
X-Forwarded-Proto | Was the original request http or https? |
X-Request-Id / traceparent | One ID across every hop, for logs and traces |
In one line each
Ingress | Original Kubernetes API for HTTP routing into a cluster; frozen, annotations for everything else |
Gateway API | Its successor: role-based, portable, typed routes (HTTP, gRPC, TLS, TCP), traffic splitting |
API gateway | A product for API policy: auth, keys, quotas, transforms, developer portal |
Service mesh | Service-to-service (east-west): mTLS, retries, telemetry, authorization |
Choosing
Expose a few web apps | Gateway API with any conformant implementation |
Public API with keys, plans, quotas | API gateway (managed or self-hosted), often behind or as the Gateway API implementation |
mTLS and policy between all services | Service mesh |
Objects and owners
GatewayClass | Which controller implements gateways of this class (infrastructure provider) |
Gateway | Listeners: port, protocol, hostname, TLS, which namespaces may attach (platform team) |
HTTPRoute / GRPCRoute | Matches, filters, backends (app team) |
ReferenceGrant | Allows a reference into another namespace (owner of the target namespace) |
Debug with status
kubectl get gateway -A | PROGRAMMED column and assigned address |
kubectl describe httproute NAME -n NS | Accepted, ResolvedRefs per parent, with reasons |
kubectl get gateway NAME -n NS -o jsonpath='{.status.listeners}' | attachedRoutes per listener |