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