HTTPRoute
An HTTPRoute is a Kubernetes Gateway API resource defining how HTTP requests are matched and forwarded to backend services through parent gateways.
Kubernetes in Action, Second Edition
An HTTPRoute is a Kubernetes Gateway API resource that defines how HTTP requests are matched and forwarded to backend services through parent gateways.
- How it is used
- Connects HTTP traffic arriving at a Gateway to backend Services using route rules.
- How deep it goes
- Works through a manifest, request matches, weights, filters, status checks, and cross-namespace permissions; does not detail controller internals.
- Examples
- Tests a hostname-based route with kubectl and curl, then demonstrates weighted canary backends and POST-based routing.
- What you can do after
- Build it from scratch with a Gateway API manifest, then test routing and diagnose attachment or reference failures with kubectl.
Read how Kubernetes in Action, Second Edition explains HTTPRoute →
Acing the Certified Kubernetes Administrator Exam, Second Edition
An HTTPRoute is a Gateway API resource that defines HTTP host, path, and backend routing rules for application traffic.
- How it is used
- Defines application-level HTTP routing while separating route ownership from Gateway and GatewayClass infrastructure management.
- How deep it goes
- Demonstrates hostname, path-prefix, parent-Gateway, backend-Service, and port configuration, then verifies creation with kubectl.
- Examples
- Uses www.example.com with a root PathPrefix to route traffic to the nginx Service on port 8080.
- What you can do after
- Build it from scratch with a v1 manifest, attach it to a Gateway, route a hostname, and verify the resulting resource.
Read how Acing the Certified Kubernetes Administrator Exam, Second Edition explains HTTPRoute →
Related concepts
- gateway apipart of · The Kubernetes Gateway API is a networking standard for defining gateways, listeners, and traffic routing between external clients and cluster services.
- serviceuses · A Kubernetes Service is an API resource that provides stable network access and service discovery for a changing set of Pods or other specified destinations.
- backenduses · A backend is a software component or subsystem that provides underlying processing, data access, execution, or services to clients or other components, typically behind a user-facing interface.
- TLSRoutecontrasts with · A TLSRoute is a Kubernetes Gateway API resource that routes TLS traffic to backend services using information available from the encrypted connection, primarily the recipient hostname.
- backendrefs fielduses · The backendRefs field identifies the services or other backend resources to which matched traffic is forwarded.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

