path-based routing
Sending requests to different backends depending on the URL path, such as /api to one service and everything else to another.
In more detail
When several rules match, the longest matching prefix usually wins. A catch-all / rule then only receives what no more specific rule claims.
Example
/api/v1/orders goes to the API rule rather than the catch-all / rule.Related terms
- Ingress — A Kubernetes object that describes how outside HTTP traffic reaches services inside the cluster, by host name and URL path.
- URL — A web address, such as https://example.com/docs, made of a scheme, a host, an optional port and a path.
Taught in
- Kubernetes Ingress, Routing & TLS Termination — Production Full-Stack Engineering