When using Istio with Kubernetes Gateway API, which object handles traffic routing rules based on path prefixes?
HTTPRoute attaches to a Gateway and defines path-prefix matching rules, satisfying the requirement for path-based routing. Unlike TCPRoute, which operates at layer 4 without HTTP awareness, HTTPRoute provides layer 7 host, header and path matching. Istio's Gateway API implementation reconciles HTTPRoute resources to configure Envoy route configurations.
Why this answer
HTTPRoute is the specific Gateway API resource for routing HTTP traffic based on hostnames, paths, and headers.