- Type
object
Specification
.spec
- Description
- Configuration affecting label/content routing, sni routing, etc. See more details at: https://istio.io/docs/reference/config/networking/virtual-service.html
- Type
object
.spec.exportTo
- Description
- A list of namespaces to which this virtual service is exported.
- Type
array
.spec.exportTo[]
- Type
string
.spec.gateways
- Description
- The names of gateways and sidecars that should apply these routes.
- Type
array
.spec.gateways[]
- Type
string
.spec.hosts
- Description
- The destination hosts to which traffic is being sent.
- Type
array
.spec.hosts[]
- Type
string
.spec.http
- Description
- An ordered list of route rules for HTTP traffic.
- Type
array
.spec.http[]
- Type
object
.spec.http[].corsPolicy
- Description
- Cross-Origin Resource Sharing policy (CORS).
- Type
object
.spec.http[].corsPolicy.allowHeaders
- Type
array
.spec.http[].corsPolicy.allowHeaders[]
- Type
string
.spec.http[].corsPolicy.allowMethods
- Description
- List of HTTP methods allowed to access the resource.
- Type
array
.spec.http[].corsPolicy.allowMethods[]
- Type
string
.spec.http[].corsPolicy.allowOrigin
- Description
- The list of origins that are allowed to perform CORS requests.
- Type
array
.spec.http[].corsPolicy.allowOrigin[]
- Type
string
.spec.http[].corsPolicy.allowOrigins
- Description
- String patterns that match allowed origins.
- Type
array
.spec.http[].corsPolicy.allowOrigins[]
- Type
object
.spec.http[].corsPolicy.exposeHeaders
- Type
array
.spec.http[].corsPolicy.exposeHeaders[]
- Type
string
.spec.http[].delegate
- Type
object
.spec.http[].directResponse
- Description
- A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
- Type
object
.spec.http[].directResponse.body
- Description
- Specifies the content of the response body.
- Type
object
.spec.http[].fault
- Description
- Fault injection policy to apply on HTTP traffic at the client side.
- Type
object
.spec.http[].fault.abort
- Type
object
.spec.http[].fault.abort.percentage
- Description
- Percentage of requests to be aborted with the error code provided.
- Type
object
.spec.http[].fault.delay
- Type
object
.spec.http[].fault.delay.percentage
- Description
- Percentage of requests on which the delay will be injected.
- Type
object
.spec.http[].headers
- Type
object
.spec.http[].headers.request
- Type
object
.spec.http[].headers.request.add
- Type
object
.spec.http[].headers.request.remove
- Type
array
.spec.http[].headers.request.remove[]
- Type
string
.spec.http[].headers.request.set
- Type
object
.spec.http[].headers.response
- Type
object
.spec.http[].headers.response.add
- Type
object
.spec.http[].headers.response.remove
- Type
array
.spec.http[].headers.response.remove[]
- Type
string
.spec.http[].headers.response.set
- Type
object
.spec.http[].match
- Type
array
.spec.http[].match[]
- Type
object
.spec.http[].match[].authority
- Type
object
.spec.http[].match[].gateways
- Description
- Names of gateways where the rule should be applied.
- Type
array
.spec.http[].match[].gateways[]
- Type
string
.spec.http[].match[].headers
- Type
object
.spec.http[].match[].method
- Type
object
.spec.http[].match[].queryParams
- Description
- Query parameters for matching.
- Type
object
.spec.http[].match[].scheme
- Type
object
.spec.http[].match[].sourceLabels
- Type
object
.spec.http[].match[].uri
- Type
object
.spec.http[].match[].withoutHeaders
- Description
- withoutHeader has the same syntax with the header, but has opposite meaning.
- Type
object
.spec.http[].mirror
- Type
object
.spec.http[].mirror.port
- Description
- Specifies the port on the host that is being addressed.
- Type
object
.spec.http[].mirrorPercentage
- Description
- Percentage of the traffic to be mirrored by the `mirror` field.
- Type
object
.spec.http[].redirect
- Description
- A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
- Type
object
.spec.http[].retries
- Description
- Retry policy for HTTP requests.
- Type
object
.spec.http[].rewrite
- Description
- Rewrite HTTP URIs and Authority headers.
- Type
object
.spec.http[].route
- Description
- A HTTP rule can either return a direct_response, redirect or forward (default) traffic.
- Type
array
.spec.http[].route[]
- Type
object
.spec.http[].route[].destination
- Type
object
.spec.http[].route[].destination.port
- Description
- Specifies the port on the host that is being addressed.
- Type
object
.spec.http[].route[].headers
- Type
object
.spec.http[].route[].headers.request
- Type
object
.spec.http[].route[].headers.request.add
- Type
object
.spec.http[].route[].headers.request.remove
- Type
array
.spec.http[].route[].headers.request.remove[]
- Type
string
.spec.http[].route[].headers.request.set
- Type
object
.spec.http[].route[].headers.response
- Type
object
.spec.http[].route[].headers.response.add
- Type
object
.spec.http[].route[].headers.response.remove
- Type
array
.spec.http[].route[].headers.response.remove[]
- Type
string
.spec.http[].route[].headers.response.set
- Type
object
.spec.tcp
- Description
- An ordered list of route rules for opaque TCP traffic.
- Type
array
.spec.tcp[]
- Type
object
.spec.tcp[].match
- Type
array
.spec.tcp[].match[]
- Type
object
.spec.tcp[].match[].destinationSubnets
- Description
- IPv4 or IPv6 ip addresses of destination with optional subnet.
- Type
array
.spec.tcp[].match[].destinationSubnets[]
- Type
string
.spec.tcp[].match[].gateways
- Description
- Names of gateways where the rule should be applied.
- Type
array
.spec.tcp[].match[].gateways[]
- Type
string
.spec.tcp[].match[].sourceLabels
- Type
object
.spec.tcp[].route
- Description
- The destination to which the connection should be forwarded to.
- Type
array
.spec.tcp[].route[]
- Type
object
.spec.tcp[].route[].destination
- Type
object
.spec.tcp[].route[].destination.port
- Description
- Specifies the port on the host that is being addressed.
- Type
object
.spec.tls
- Type
array
.spec.tls[]
- Type
object
.spec.tls[].match
- Type
array
.spec.tls[].match[]
- Type
object
.spec.tls[].match[].destinationSubnets
- Description
- IPv4 or IPv6 ip addresses of destination with optional subnet.
- Type
array
.spec.tls[].match[].destinationSubnets[]
- Type
string
.spec.tls[].match[].gateways
- Description
- Names of gateways where the rule should be applied.
- Type
array
.spec.tls[].match[].gateways[]
- Type
string
.spec.tls[].match[].sniHosts
- Description
- SNI (server name indicator) to match on.
- Type
array
.spec.tls[].match[].sniHosts[]
- Type
string
.spec.tls[].match[].sourceLabels
- Type
object
.spec.tls[].route
- Description
- The destination to which the connection should be forwarded to.
- Type
array
.spec.tls[].route[]
- Type
object
.spec.tls[].route[].destination
- Type
object
.spec.tls[].route[].destination.port
- Description
- Specifies the port on the host that is being addressed.
- Type
object
.status
- Type
object
API Endpoints
The following API endpoints are available:
/apis/networking.istio.io/v1alpha3/namespaces/{namespace}/virtualservicesDELETE: delete collection of VirtualServiceGET: list objects of kind VirtualServicePOST: create a new VirtualService
/apis/networking.istio.io/v1alpha3/namespaces/{namespace}/virtualservices/{name}DELETE: delete the specified VirtualServiceGET: read the specified VirtualServicePATCH: partially update the specified VirtualServicePUT: replace the specified VirtualService
/apis/networking.istio.io/v1alpha3/namespaces/{namespace}/virtualservices/{name}/statusGET: read status of the specified VirtualServicePATCH: partially update status of the specified VirtualServicePUT: replace status of the specified VirtualService
/apis/networking.istio.io/v1alpha3/namespaces/{namespace}/virtualservices
- HTTP method
DELETE- Description
- delete collection of VirtualService
- HTTP responses
- HTTP method
GET- Description
- list objects of kind VirtualService
- HTTP responses
- HTTP method
POST- Description
- create a new VirtualService
- Query parameters
- Body parameters
- HTTP responses
/apis/networking.istio.io/v1alpha3/namespaces/{namespace}/virtualservices/{name}
- HTTP method
DELETE- Description
- delete the specified VirtualService
- Query parameters
- HTTP responses
- HTTP method
GET- Description
- read the specified VirtualService
- HTTP responses
- HTTP method
PATCH- Description
- partially update the specified VirtualService
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace the specified VirtualService
- Query parameters
- Body parameters
- HTTP responses
/apis/networking.istio.io/v1alpha3/namespaces/{namespace}/virtualservices/{name}/status
- HTTP method
GET- Description
- read status of the specified VirtualService
- HTTP responses
- HTTP method
PATCH- Description
- partially update status of the specified VirtualService
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace status of the specified VirtualService
- Query parameters
- Body parameters
- HTTP responses