MeshTimeouts 정책 구성 참조
MeshTimeouts 정책 구성 참조 (MeshTimeouts Policy Configuration Reference)
이 문서는 Kuma의 MeshTimeout 리소스 설정 방법을 알려줘요 연결 타임아웃, HTTP 관련 타임아웃 등 다양한 시간 제한 값을 JSON 형식으로 구성할 수 있답니다 각 설정의 기본값과 동작 방식을 확인해 보세요
출처: 문서
본문
설정
{
"description": "Spec is the specification of the Kuma MeshTimeout resource.",
"properties": {
"from": {
"description": "From list makes a match between clients and corresponding configurations",
"items": {
"properties": {
"default": {
"description": "Default is a configuration specific to the group of clients referenced in\n'targetRef'",
"properties": {
"connectionTimeout": {
"description": "ConnectionTimeout specifies the amount of time proxy will wait for an TCP connection to be established.\nDefault value is 5 seconds. Cannot be set to 0.",
"type": "string"
},
"http": {
"description": "Http provides configuration for HTTP specific timeouts",
"properties": {
"maxConnectionDuration": {
"description": "MaxConnectionDuration is the time after which a connection will be drained and/or closed,\nstarting from when it was first established. Setting this timeout to 0 will disable it.\nDisabled by default.",
"type": "string"
},
"maxStreamDuration": {
"description": "MaxStreamDuration is the maximum time that a stream’s lifetime will span.\nSetting this timeout to 0 will disable it. Disabled by default.",
"type": "string"
},
"requestHeadersTimeout": {
"description": "RequestHeadersTimeout The amount of time that proxy will wait for the request headers to be received. The timer is\nactivated when the first byte of the headers is received, and is disarmed when the last byte of\nthe headers has been received. If not specified or set to 0, this timeout is disabled.\nDisabled by default.",
"type": "string"
},
"requestTimeout": {
"description": "RequestTimeout The amount of time that proxy will wait for the entire request to be received.\nThe timer is activated when the request is initiated, and is disarmed when the last byte of the request is sent,\nOR when the response is initiated. Setting this timeout to 0 will disable it.\nDefault is 15s.",
"type": "string"
},
"streamIdleTimeout": {
"description": "StreamIdleTimeout is the amount of time that proxy will allow a stream to exist with no activity.\nSetting this timeout to 0 will disable it. Default is 30m",
"type": "string"
}
},
"type": "object"
},
"idleTimeout": {
"description": "IdleTimeout is defined as the period in which there are no bytes sent or received on connection\nSetting this timeout to 0 will disable it. Be cautious when disabling it because\nit can lead to connection leaking. Default value is 1h.",
"type": "string"
}
},
"type": "object"
},
"targetRef": {
"description": "TargetRef is a reference to the resource that represents a group of\nclients.",
"properties": {
"kind": {
"description": "Kind of the referenced resource",
"enum": [
"Mesh",
"MeshSubset",
"MeshGateway",
"MeshService",
"MeshExternalService",
"MeshMultiZoneService",
"MeshServiceSubset",
"MeshHTTPRoute",
"Dataplane"
],
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Labels are used to select group of MeshServices that match labels. Either Labels or\nName and Namespace can be used.",
"type": "object"
},
"mesh": {
"description": "Mesh is reserved for future use to identify cross mesh resources.",
"type": "string"
},
"name": {
"description": "Name of the referenced resource. Can only be used with kinds: `MeshService`,\n`MeshServiceSubset` and `MeshGatewayRoute`",
"type": "string"
},
"namespace": {
"description": "Namespace specifies the namespace of target resource. If empty only resources in policy namespace\nwill be targeted.",
"type": "string"
},
"proxyTypes": {
"description": "ProxyTypes specifies the data plane types that are subject to the policy. When not specified,\nall data plane types are targeted by the policy.",
"items": {
"enum": [
"Sidecar",
"Gateway"
],
"type": "string"
},
"type": "array"
},
"sectionName": {
"description": "SectionName is used to target specific section of resource.\nFor example, you can target port from MeshService.ports[] by its name. Only traffic to this port will be affected.",
"type": "string"
},
"tags": {
"additionalProperties": {
"type": "string"
},
"description": "Tags used to select a subset of proxies by tags. Can only be used with kinds\n`MeshSubset` and `MeshServiceSubset`",
"type": "object"
}
},
"required": [
"kind"
],
"type": "object"
}
},
"required": [
"targetRef"
],
"type": "object"
},
"type": "array"
},
"rules": {
"description": "Rules defines inbound timeout configurations. When matches are present, the rule is applied only\nto traffic selected by the given source and destination matchers.",
"items": {
"properties": {
"default": {
"description": "Default contains configuration of the inbound timeouts",
"properties": {
"connectionTimeout": {
"description": "ConnectionTimeout specifies the amount of time proxy will wait for an TCP connection to be established.\nDefault value is 5 seconds. Cannot be set to 0.",
"type": "string"
},
"http": {
"description": "Http provides configuration for HTTP specific timeouts",
"properties": {
"maxConnectionDuration": {
"description": "MaxConnectionDuration is the time after which a connection will be drained and/or closed,\nstarting from when it was first established. Setting this timeout to 0 will disable it.\nDisabled by default.",
"type": "string"
},
"maxStreamDuration": {
"description": "MaxStreamDuration is the maximum time that a stream’s lifetime will span.\nSetting this timeout to 0 will disable it. Disabled by default.",
"type": "string"
},
"requestHeadersTimeout": {
"description": "RequestHeadersTimeout The amount of time that proxy will wait for the request headers to be received. The timer is\nactivated when the first byte of the headers is received, and is disarmed when the last byte of\nthe headers has been received. If not specified or set to 0, this timeout is disabled.\nDisabled by default.",
"type": "string"
},
"requestTimeout": {
"description": "RequestTimeout The amount of time that proxy will wait for the entire request to be received.\nThe timer is activated when the request is initiated, and is disarmed when the last byte of the request is sent,\nOR when the response is initiated. Setting this timeout to 0 will disable it.\nDefault is 15s.",
"type": "string"
},
"streamIdleTimeout": {
"description": "StreamIdleTimeout is the amount of time that proxy will allow a stream to exist with no activity.\nSetting this timeout to 0 will disable it. Default is 30m",
"type": "string"
}
},
"type": "object"
},
"idleTimeout": {
"description": "IdleTimeout is defined as the period in which there are no bytes sent or received on connection\nSetting this timeout to 0 will disable it. Be cautious when disabling it because\nit can lead to connection leaking. Default value is 1h.",
"type": "string"
}
},
"type": "object"
},
"matches": {
"description": "Matches define predicates for selecting traffic this configuration applies to.",
"items": {
"properties": {
"sni": {
"description": "SNI defines a matcher configuration for matching by SNI value carried on the TLS connection",
"properties": {
"type": {
"description": "Type defines how to match traffic by SNI. Only `Exact` is supported.",
"enum": [
"Exact"
],
"type": "string"
},
"value": {
"description": "Value is the SNI carried on the TLS connection that needs to match for the configuration to be applied",
"type": "string"
}
},
"required": [
"type",
"value"
],
"type": "object"
},
"spiffeID": {
"description": "SpiffeID defines a matcher configuration for SpiffeID matching",
"properties": {
"type": {
"description": "Type defines how to match incoming traffic by SpiffeID. `Exact` or `Prefix` are allowed.",
"enum": [
"Exact",
"Prefix"
],
"type": "string"
},
"value": {
"description": "Value is SpiffeID of a client that needs to match for the configuration to be applied",
"type": "string"
}
},
"required": [
"type",
"value"
],
"type": "object"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"type": "array"
},
"targetRef": {
"description": "TargetRef is a reference to the resource the policy takes an effect on.\nThe resource could be either a real store object or virtual resource\ndefined inplace.",
"properties": {
"kind": {
"description": "Kind of the referenced resource",
"enum": [
"Mesh",
"MeshSubset",
"MeshGateway",
"MeshService",
"MeshExternalService",
"MeshMultiZoneService",
"MeshServiceSubset",
"MeshHTTPRoute",
"Dataplane"
],
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Labels are used to select group of MeshServices that match labels. Either Labels or\nName and Namespace can be used.",
"type": "object"
},
"mesh": {
"description": "Mesh is reserved for future use to identify cross mesh resources.",
"type": "string"
},
"name": {
"description": "Name of the referenced resource. Can only be used with kinds: `MeshService`,\n`MeshServiceSubset` and `MeshGatewayRoute`",
"type": "string"
},
"namespace": {
"description": "Namespace specifies the namespace of target resource. If empty only resources in policy namespace\nwill be targeted.",
"type": "string"
},
"proxyTypes": {
"description": "ProxyTypes specifies the data plane types that are subject to the policy. When not specified,\nall data plane types are targeted by the policy.",
"items": {
"enum": [
"Sidecar",
"Gateway"
],
"type": "string"
},
"type": "array"
},
"sectionName": {
"description": "SectionName is used to target specific section of resource.\nFor example, you can target port from MeshService.ports[] by its name. Only traffic to this port will be affected.",
"type": "string"
},
"tags": {
"additionalProperties": {
"type": "string"
},
"description": "Tags used to select a subset of proxies by tags. Can only be used with kinds\n`MeshSubset` and `MeshServiceSubset`",
"type": "object"
}
},
"required": [
"kind"
],
"type": "object"
},
"to": {
"description": "To list makes a match between the consumed services and corresponding configurations",
"items": {
"properties": {
"default": {
"description": "Default is a configuration specific to the group of destinations referenced in\n'targetRef'",
"properties": {
"connectionTimeout": {
"description": "ConnectionTimeout specifies the amount of time proxy will wait for an TCP connection to be established.\nDefault value is 5 seconds. Cannot be set to 0.",
"type": "string"
},
"http": {
"description": "Http provides configuration for HTTP specific timeouts",
"properties": {
"maxConnectionDuration": {
"description": "MaxConnectionDuration is the time after which a connection will be drained and/or closed,\nstarting from when it was first established. Setting this timeout to 0 will disable it.\nDisabled by default.",
"type": "string"
},
"maxStreamDuration": {
"description": "MaxStreamDuration is the maximum time that a stream’s lifetime will span.\nSetting this timeout to 0 will disable it. Disabled by default.",
"type": "string"
},
"requestHeadersTimeout": {
"description": "RequestHeadersTimeout The amount of time that proxy will wait for the request headers to be received. The timer is\nactivated when the first byte of the headers is received, and is disarmed when the last byte of\nthe headers has been received. If not specified or set to 0, this timeout is disabled.\nDisabled by default.",
"type": "string"
},
"requestTimeout": {
"description": "RequestTimeout The amount of time that proxy will wait for the entire request to be received.\nThe timer is activated when the request is initiated, and is disarmed when the last byte of the request is sent,\nOR when the response is initiated. Setting this timeout to 0 will disable it.\nDefault is 15s.",
"type": "string"
},
"streamIdleTimeout": {
"description": "StreamIdleTimeout is the amount of time that proxy will allow a stream to exist with no activity.\nSetting this timeout to 0 will disable it. Default is 30m",
"type": "string"
}
},
"type": "object"
},
"idleTimeout": {
"description": "IdleTimeout is defined as the period in which there are no bytes sent or received on connection\nSetting this timeout to 0 will disable it. Be cautious when disabling it because\nit can lead to connection leaking. Default value is 1h.",
"type": "string"
}
},
"type": "object"
},
"targetRef": {
"description": "TargetRef is a reference to the resource that represents a group of\ndestinations.",
"properties": {
"kind": {
"description": "Kind of the referenced resource",
"enum": [
"Mesh",
"MeshSubset",
"MeshGateway",
"MeshService",
"MeshExternalService",
"MeshMultiZoneService",
"MeshServiceSubset",
"MeshHTTPRoute",
"Dataplane"
],
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "Labels are used to select group of MeshServices that match labels. Either Labels or\nName and Namespace can be used.",
"type": "object"
},
"mesh": {
"description": "Mesh is reserved for future use to identify cross mesh resources.",
"type": "string"
},
"name": {
"description": "Name of the referenced resource. Can only be used with kinds: `MeshService`,\n`MeshServiceSubset` and `MeshGatewayRoute`",
"type": "string"
},
"namespace": {
"description": "Namespace specifies the namespace of target resource. If empty only resources in policy namespace\nwill be targeted.",
"type": "string"
},
"proxyTypes": {
"description": "ProxyTypes specifies the data plane types that are subject to the policy. When not specified,\nall data plane types are targeted by the policy.",
"items": {
"enum": [
"Sidecar",
"Gateway"
],
"type": "string"
},
"type": "array"
},
"sectionName": {
"description": "SectionName is used to target specific section of resource.\nFor example, you can target port from MeshService.ports[] by its name. Only traffic to this port will be affected.",
"type": "string"
},
"tags": {
"additionalProperties": {
"type": "string"
},
"description": "Tags used to select a subset of proxies by tags. Can only be used with kinds\n`MeshSubset` and `MeshServiceSubset`",
"type": "object"
}
},
"required": [
"kind"
],
"type": "object"
}
},
"required": [
"targetRef"
],
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.