A machine-readable index of this documentation for AI agents is available at https://kubevela.io/llms.txt. Markdown versions of documentation pages are available by appending .md to their URLs.
Skip to main content

http-route

Type: trait. From: the gateway-traits addon.

defines HTTP rules for mapping requests from a Gateway to Application.

Parameters​

domains []string
Specify some domains, the domain may be prefixed with a wildcard label (*.)
gatewayName traefik or istio default traefik
Specify the gateway name.
gatewayNamespace string default vela-system
Specify the gateway namespace.
listenerName string default web
Specify the listner name of the gateway.
rules[] (7) Specify some HTTP matchers, filters and actions.
serviceName string
Specify the service name of component, the default is component name.
port int required
Specify the service port of component.
path (2) An HTTP request path matcher. If this field is not specified, a default prefix match on the "/" path is provided.
type PathPrefix or Exact default PathPrefix
value string default /
headers[] (3) Conditions to select a HTTP route by matching HTTP request headers.
type string required
name string required
value string required