MeshTCPRoute 정책 구성 참조
MeshTCPRoute 정책 구성 참조 (MeshTCPRoutes Policy Configuration Reference)
이 문서는 Kuma의 MeshTCPRoute 정책 리소스가 어떤 구조로 구성되는지 보여주는 구성 참조 자료예요. 정책이 적용될 대상을 지정하는 targetRef의 kind, labels, name, namespace, proxyTypes 같은 필드들이 각각 어떤 역할을 하는지 스키마 형태로 정리해 주고요. 소비하는 서비스와 구성을 매칭하는 to 항목 같은 주요 구성 요소도 JSON 예시로 바로 확인할 수 있어요
출처: 문서
본문
구성
{
"description": "Spec is the specification of the Kuma MeshTCPRoute resource.",
"properties": {
"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 in-place.",
"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\nconfigurations",
"items": {
"properties": {
"rules": {
"description": "Rules contains the routing rules applies to a combination of top-level\ntargetRef and the targetRef in this entry.",
"items": {
"properties": {
"default": {
"description": "Default holds routing rules that can be merged with rules from other\npolicies.",
"properties": {
"backendRefs": {
"items": {
"description": "BackendRef defines where to forward traffic.",
"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"
},
"port": {
"description": "Port is only supported when this ref refers to a real MeshService object",
"format": "int32",
"type": "integer"
},
"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"
},
"weight": {
"default": 1,
"minimum": 0,
"type": "integer"
}
},
"required": [
"kind"
],
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
},
"required": [
"default"
],
"type": "object"
},
"maxItems": 1,
"type": "array"
},
"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": [
"rules",
"targetRef"
],
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
"type": "object"
}
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.