Path-based routing
Path-based routing is a traffic-routing technique that directs requests to backend services according to the request URL or URI path.
Kubernetes for Developers
Path-based routing directs requests to different backends according to the URI path.
- How it is used
- Routes multiple HTTP services through one external IP and domain while preserving public-facing URL paths.
- How deep it goes
- Explains Ingress rules, backend Services, and deployment inspection, but stops short of TLS configuration details.
- Examples
- Uses root and /robohash paths mapped to timeserver-internal and robohash-internal Services.
- What you can do after
- Configure Kubernetes Ingress rules that map URI paths to backend Services and inspect the resulting address and health.
Read how Kubernetes for Developers explains path-based routing →
Learn Docker in a Month of Lunches, Second Edition
Path-based routing directs requests to different backend services according to the request URL path.
- How it is used
- Uses a reverse proxy to assemble multiple application components under one domain.
- How deep it goes
- Walks through configuration replacement, proxy reload, and curl verification without detailing Nginx matching internals.
- Examples
- Demonstrates an image-gallery web UI and API exposed through image-gallery.local and /api/image.
- What you can do after
- Operate Nginx path routing by installing a site configuration, reloading the proxy, and testing an API URL.
Read how Learn Docker in a Month of Lunches, Second Edition explains path-based routing →
Related concepts
- ingress objectused by · A Kubernetes Ingress is an API resource that specifies rules for routing external HTTP and HTTPS requests to services within a cluster.
- NGINXimplemented by · NGINX is open-source web-server and reverse-proxy software that serves HTTP content, forwards requests, and can load-balance network traffic.
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.

