가상 클러스터 전달 정책 구성 참조
가상 클러스터 전달 정책 구성 참조 (Forward to Virtual Cluster Policy Configuration Reference)
이 문서는 Event Gateway에서 요청을 가상 클러스터로 전달하는 Forward to Virtual Cluster 정책의 구성 참조 자료예요. 정책의 고유 이름, 설명, 활성화 여부 같은 공통 속성과 함께 port_mapping 또는 sni 방식 중 하나로 지정하는 config 구조를 항목별로 설명해요. 리스너에 여러 정책을 설정할 수 있지만 port_mapping은 하나만 존재해야 하고, 연결에 처음 일치하는 정책이 적용되며 어느 것도 일치하지 않으면 연결이 거부된다는 점도 함께 다뤄요
출처: 문서
본문
구성
{
"description": "Forwards requests to virtual clusters configured with port routing or SNI routing.\nWhile there can be multiple of these policies configured on a listener, there can only be one instance of\n`port_mapping`.\nWhen multiple policies are configured, the first one that matches the connection is used.\nIf no policy matches, the connection is rejected.\n\nWhen using `port_mapping`, there must be a mapping port for each broker on the backend cluster see\n`ForwardToClusterBySNIConfig` for more details.\n",
"type": "object",
"properties": {
"type": {
"description": "The type name of the policy.",
"type": "string",
"enum": [
"forward_to_virtual_cluster"
],
"maxLength": 255,
"minLength": 1,
"x-terraform-transform-const": true
},
"name": {
"description": "A unique user-defined name of the policy.",
"type": "string",
"maxLength": 255,
"x-unicode-pattern": "^[\\p{L}\\p{N}][\\p{L}\\p{N} _\\-\\.:/+']*[\\p{L}\\p{N}]$"
},
"description": {
"description": "A human-readable description of the policy.",
"type": "string",
"default": "",
"maxLength": 512
},
"enabled": {
"description": "Whether the policy is enabled.",
"type": "boolean",
"default": true
},
"labels": {
"$ref": "#/components/schemas/Labels"
},
"config": {
"description": "The configuration of the policy.",
"type": "object",
"discriminator": {
"propertyName": "type",
"mapping": {
"port_mapping": "#/components/schemas/ForwardToClusterByPortMappingConfig",
"sni": "#/components/schemas/ForwardToClusterBySNIConfig"
}
},
"oneOf": [
{
"$ref": "#/components/schemas/ForwardToClusterBySNIConfig"
},
{
"$ref": "#/components/schemas/ForwardToClusterByPortMappingConfig"
}
]
}
},
"required": [
"type",
"config"
],
"title": "Forward to Virtual Cluster"
}
관련 리소스
더 알아보기 (Learn more)
- 정책이 적용되는 리스너 엔티티의 개념과 구성을 확인할 수 있어요 — Listeners
- 이 정책이 요청을 전달하는 대상인 가상 클러스터 엔티티를 이해할 수 있어요 — Virtual clusters
- 정책 엔티티의 공통 구조와 동작 방식을 살펴볼 수 있어요 — Policies
- Event Gateway로 SNI 라우팅을 구성하는 방법을 단계별로 따라 할 수 있어요 — How-to: Configure SNI routing with Event Gateway
- Event Gateway를 처음 시작하는 방법을 안내하는 튜토리얼이에요 — How-to: Get started with Event Gateway