API Gateways, Traffic Management & the Edge›The big picture · Cheat sheet & self-check

The big picture · wrap-up

Cheat sheet & self-check

Every command from this section on one page.

01 · One request, from browser to pod

Hops and their jobs

DNSName → address; GeoDNS can return a nearby or healthy region
CDN / edge networkNearest point of presence (anycast); caching; first TLS termination
WAF + DDoS protectionBlock attacks and floods before they reach your network
Load balancerSpread connections over gateway replicas; health checks
API gatewayRouting, authentication, rate limits, retries, timeouts, logs per API
Service meshService-to-service mTLS, retries, metrics inside the cluster

Headers that record the journey

X-Forwarded-ForClient IP, plus each proxy that forwarded the request
X-Forwarded-ProtoWas the original request http or https?
X-Request-Id / traceparentOne ID across every hop, for logs and traces

02 · Ingress, Gateway API, API gateway, service mesh: who does what

In one line each

IngressOriginal Kubernetes API for HTTP routing into a cluster; frozen, annotations for everything else
Gateway APIIts successor: role-based, portable, typed routes (HTTP, gRPC, TLS, TCP), traffic splitting
API gatewayA product for API policy: auth, keys, quotas, transforms, developer portal
Service meshService-to-service (east-west): mTLS, retries, telemetry, authorization

Choosing

Expose a few web appsGateway API with any conformant implementation
Public API with keys, plans, quotasAPI gateway (managed or self-hosted), often behind or as the Gateway API implementation
mTLS and policy between all servicesService mesh

03 · Gateway API in depth

Objects and owners

GatewayClassWhich controller implements gateways of this class (infrastructure provider)
GatewayListeners: port, protocol, hostname, TLS, which namespaces may attach (platform team)
HTTPRoute / GRPCRouteMatches, filters, backends (app team)
ReferenceGrantAllows a reference into another namespace (owner of the target namespace)

Debug with status

kubectl get gateway -APROGRAMMED column and assigned address
kubectl describe httproute NAME -n NSAccepted, ResolvedRefs per parent, with reasons
kubectl get gateway NAME -n NS -o jsonpath='{.status.listeners}'attachedRoutes per listener