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

MeshPassthrough 정책 구성 참조

원문 보기 위키 갱신

MeshPassthrough 정책 구성 참조 (meshpassthroughs Policy Configuration Reference)

이 문서는 Kong Mesh에서 MeshPassthrough 정책을 구성할 때 사용하는 설정 스키마를 정리한 참조 자료예요. MeshPassthrough는 사이드카 프록시를 우회해 직접 통신할 수 있는 트래픽 목적지를 지정하는 정책이에요. appendMatch로 포트·프로토콜·Domain/IP/CIDR 기반의 허용 목적지를 정의하고, passthroughMode로 All·None·Matched 중 동작 방식을 선택하는 방법을 설명해요. targetRef를 통해 정책이 적용될 대상 리소스를 지정하는 구조도 함께 확인할 수 있어요

출처: 문서

본문

구성

{
  "description": "Spec is the specification of the Kuma MeshPassthrough resource.",
  "properties": {
    "default": {
      "description": "MeshPassthrough configuration.",
      "properties": {
        "appendMatch": {
          "description": "AppendMatch is a list of destinations that should be allowed through the sidecar.",
          "items": {
            "properties": {
              "port": {
                "description": "Port defines the port to which a user makes a request.",
                "format": "int32",
                "type": "integer"
              },
              "protocol": {
                "default": "tcp",
                "description": "Protocol defines the communication protocol. Possible values: `tcp`, `tls`, `grpc`, `http`, `http2`, `mysql`.",
                "enum": [
                  "tcp",
                  "tls",
                  "grpc",
                  "http",
                  "http2",
                  "mysql"
                ],
                "type": "string"
              },
              "type": {
                "description": "Type of the match, one of `Domain`, `IP` or `CIDR` is available.",
                "enum": [
                  "Domain",
                  "IP",
                  "CIDR"
                ],
                "type": "string"
              },
              "value": {
                "description": "Value for the specified Type.",
                "type": "string"
              }
            },
            "required": [
              "type",
              "value"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "passthroughMode": {
          "description": "Defines the passthrough behavior. Possible values: `All`, `None`, `Matched`\nWhen `All` or `None` `appendMatch` has no effect.\nIf not specified then the default value is \"Matched\".",
          "enum": [
            "All",
            "Matched",
            "None"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "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"
    }
  },
  "type": "object"
}

더 알아보기 (Learn more)

이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.