- IDP Support
- Custom Resource Definitions
- Upgrading Ambassador
- Statistics and Monitoring
- Need Help?
prefix_regex attribute is set to
true, ambassador configures a regex route instead of a prefix route in envoy. This means the entire path must match the regex specified, not only the prefix.
If the version is a path parameter and the resources are served by different services, then
--- apiVersion: ambassador/v1 kind: Mapping name: qotm_mapping prefix: "/(v1|v2)/qotm/.*" prefix_regex: true service: qotm
will map requests to both
/v2 to the
Note that enclosing regular expressions in quotes can be important to prevent backslashes from being doubled.