Host-based routing selects a Kubernetes backend from the hostname in an HTTP request. An Ingress resource defines the rule, and an Ingress controller interprets it to forward traffic to a Service. section 6.3
Use the routing chain to configure and verify the behavior:
- Install or verify an Ingress controller, which proxies external HTTP and HTTPS traffic into the cluster. section 6.3
- Create a Deployment and expose it through a Service; Ingress rules forward requests to the Service rather than directly to the workload. section 6.3
Route two hostnames
An Ingress can route hello.com at / to hello-svc on port 80 and app.hello.com at / to nginx on port 8080. The hostname must resolve to the Ingress endpoint before curl can verify the result.

