Exploring Path-Based and Header-Based Routing Solutions in Knative
Currently, in Knative version 1.1.0, traffic routing is primarily based on domain names.
However, in many use cases:
- Services often have fixed external domain names, and there may be multiple of them.
- Services are typically organized under specific paths within a domain, meaning one domain consists of multiple services.
- Grey releases are based on multiple header values with
and
andor
relationships.
Let’s discuss how to address these requirements.
1 Domain Binding
Apart from using Knative’s default domain, Knative provides domainMapping to bind additional domains.