liveBook · Manning

Host-based routing

Host-based routing is a traffic-routing technique that selects a backend according to the hostname in a request.

How 2 Manning books explain it

Acing the Certified Kubernetes Administrator Exam, Second Edition

Host-based routing is a traffic-routing technique that selects a backend according to the hostname in a request.

How it is used
Routes external HTTP and HTTPS requests to different internal Services through a centralized Ingress controller.
How deep it goes
Explains controller, Service, Ingress, DNS, and curl verification, but does not descend into controller internals.
Examples
Uses hello.com, app.hello.com, hello-svc, nginx, kubectl output, a host entry, and curl responses.
What you can do after
Build it from scratch by installing an Ingress controller, exposing a Deployment, defining host rules, and verifying routing.

Read how Acing the Certified Kubernetes Administrator Exam, Second Edition explains host-based routing →

Kubernetes for Developers

Host-based routing directs requests to different backends according to the hostname in the request.

How it is used
Uses an Ingress to expose multiple HTTP services through one external IP.
How deep it goes
Explains Host-header routing and manifests, but defers detailed controller implementation and cloud provisioning.
Examples
Demonstrates timeserver.example.com and robohash.example.com routing to separate internal Services.
What you can do after
Build it from scratch by defining hostname rules that route requests to Kubernetes Services.

Read how Kubernetes for Developers explains host-based routing →

Related concepts

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.