본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

가상 클러스터 전달 정책 구성 참조

원문 보기 위키 갱신

가상 클러스터 전달 정책 구성 참조 (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)