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

MeshAccessLogs 정책 설정 참조

원문 보기 위키 갱신

MeshAccessLogs 정책 설정 참조 (MeshAccessLogs Policy Configuration Reference)

이 문서는 Kong Mesh에서 MeshAccessLog 리소스를 설정하는 방법을 정리한 참조 문서예요. 어떤 클라이언트 그룹에 어떤 로그 설정을 적용할지 정하는 from 항목과, 파일 백엔드 같은 로그 전송 방식을 지정하는 backends 구조를 다뤄요. 일반 텍스트나 JSON 같은 접근 로그 포맷을 구성하는 방법도 예시와 함께 설명해요

출처: 문서

본문

구성

{
  "description": "Spec is the specification of the Kuma MeshAccessLog 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": {
              "backends": {
                "items": {
                  "properties": {
                    "file": {
                      "description": "FileBackend defines configuration for file based access logs",
                      "properties": {
                        "format": {
                          "description": "Format of access logs. Placeholders available on\nhttps://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators",
                          "properties": {
                            "json": {
                              "example": [
                                {
                                  "key": "start_time",
                                  "value": "%START_TIME%"
                                },
                                {
                                  "key": "bytes_received",
                                  "value": "%BYTES_RECEIVED%"
                                }
                              ],
                              "items": {
                                "properties": {
                                  "key": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "key",
                                  "value"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "omitEmptyValues": {
                              "default": false,
                              "type": "boolean"
                            },
                            "plain": {
                              "example": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%",
                              "type": "string"
                            },
                            "type": {
                              "enum": [
                                "Plain",
                                "Json"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "type": "object"
                        },
                        "path": {
                          "description": "Path to a file that logs will be written to",
                          "example": "/tmp/access.log",
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "path"
                      ],
                      "type": "object"
                    },
                    "openTelemetry": {
                      "description": "Defines an OpenTelemetry logging backend.",
                      "properties": {
                        "attributes": {
                          "description": "Attributes defines custom OpenTelemetry attributes. Keys must be static\nOpenTelemetry attribute names. Values can contain placeholders available on\nhttps://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators",
                          "example": [
                            {
                              "key": "mesh",
                              "value": "%KUMA_MESH%"
                            }
                          ],
                          "items": {
                            "properties": {
                              "key": {
                                "description": "Key is the OpenTelemetry attribute name.",
                                "pattern": "^[a-z]([a-z0-9]|[._][a-z0-9])*$",
                                "type": "string"
                              },
                              "value": {
                                "description": "Value can contain Kuma placeholders.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "key",
                              "value"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "backendRef": {
                          "description": "BackendRef is a reference to a MeshOpenTelemetryBackend resource that\ndefines the collector endpoint. Mutually exclusive with Endpoint.",
                          "properties": {
                            "kind": {
                              "description": "Kind of the backend resource.",
                              "enum": [
                                "MeshOpenTelemetryBackend"
                              ],
                              "type": "string"
                            },
                            "labels": {
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Labels to match the referenced resource. When multiple resources match,\nthe oldest by creation time wins.",
                              "type": "object"
                            }
                          },
                          "required": [
                            "kind"
                          ],
                          "type": "object"
                        },
                        "body": {
                          "description": "Body is a raw string or an OTLP any value as described at\nhttps://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#field-body\nIt can contain placeholders available on\nhttps://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators",
                          "example": {
                            "kvlistValue": {
                              "values": [
                                {
                                  "key": "mesh",
                                  "value": {
                                    "stringValue": "%KUMA_MESH%"
                                  }
                                }
                              ]
                            }
                          },
                          "x-kubernetes-preserve-unknown-fields": true
                        },
                        "endpoint": {
                          "default": "",
                          "description": "Endpoint of OpenTelemetry collector. An empty port defaults to 4317.\n\nDeprecated: use BackendRef instead.",
                          "example": "otel-collector:4317",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "tcp": {
                      "description": "TCPBackend defines a TCP logging backend.",
                      "properties": {
                        "address": {
                          "description": "Address of the TCP logging backend",
                          "example": "127.0.0.1:5000",
                          "minLength": 1,
                          "type": "string"
                        },
                        "format": {
                          "description": "Format of access logs. Placeholders available on\nhttps://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators",
                          "properties": {
                            "json": {
                              "example": [
                                {
                                  "key": "start_time",
                                  "value": "%START_TIME%"
                                },
                                {
                                  "key": "bytes_received",
                                  "value": "%BYTES_RECEIVED%"
                                }
                              ],
                              "items": {
                                "properties": {
                                  "key": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "key",
                                  "value"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "omitEmptyValues": {
                              "default": false,
                              "type": "boolean"
                            },
                            "plain": {
                              "example": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%",
                              "type": "string"
                            },
                            "type": {
                              "enum": [
                                "Plain",
                                "Json"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "address"
                      ],
                      "type": "object"
                    },
                    "type": {
                      "enum": [
                        "Tcp",
                        "File",
                        "OpenTelemetry"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "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": [
          "default",
          "targetRef"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "rules": {
      "description": "Rules defines inbound access log configurations.",
      "items": {
        "properties": {
          "default": {
            "description": "Default contains configuration of the inbound access logging",
            "properties": {
              "backends": {
                "items": {
                  "properties": {
                    "file": {
                      "description": "FileBackend defines configuration for file based access logs",
                      "properties": {
                        "format": {
                          "description": "Format of access logs. Placeholders available on\nhttps://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators",
                          "properties": {
                            "json": {
                              "example": [
                                {
                                  "key": "start_time",
                                  "value": "%START_TIME%"
                                },
                                {
                                  "key": "bytes_received",
                                  "value": "%BYTES_RECEIVED%"
                                }
                              ],
                              "items": {
                                "properties": {
                                  "key": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "key",
                                  "value"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "omitEmptyValues": {
                              "default": false,
                              "type": "boolean"
                            },
                            "plain": {
                              "example": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%",
                              "type": "string"
                            },
                            "type": {
                              "enum": [
                                "Plain",
                                "Json"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "type": "object"
                        },
                        "path": {
                          "description": "Path to a file that logs will be written to",
                          "example": "/tmp/access.log",
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "path"
                      ],
                      "type": "object"
                    },
                    "openTelemetry": {
                      "description": "Defines an OpenTelemetry logging backend.",
                      "properties": {
                        "attributes": {
                          "description": "Attributes defines custom OpenTelemetry attributes. Keys must be static\nOpenTelemetry attribute names. Values can contain placeholders available on\nhttps://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators",
                          "example": [
                            {
                              "key": "mesh",
                              "value": "%KUMA_MESH%"
                            }
                          ],
                          "items": {
                            "properties": {
                              "key": {
                                "description": "Key is the OpenTelemetry attribute name.",
                                "pattern": "^[a-z]([a-z0-9]|[._][a-z0-9])*$",
                                "type": "string"
                              },
                              "value": {
                                "description": "Value can contain Kuma placeholders.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "key",
                              "value"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "backendRef": {
                          "description": "BackendRef is a reference to a MeshOpenTelemetryBackend resource that\ndefines the collector endpoint. Mutually exclusive with Endpoint.",
                          "properties": {
                            "kind": {
                              "description": "Kind of the backend resource.",
                              "enum": [
                                "MeshOpenTelemetryBackend"
                              ],
                              "type": "string"
                            },
                            "labels": {
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Labels to match the referenced resource. When multiple resources match,\nthe oldest by creation time wins.",
                              "type": "object"
                            }
                          },
                          "required": [
                            "kind"
                          ],
                          "type": "object"
                        },
                        "body": {
                          "description": "Body is a raw string or an OTLP any value as described at\nhttps://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#field-body\nIt can contain placeholders available on\nhttps://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators",
                          "example": {
                            "kvlistValue": {
                              "values": [
                                {
                                  "key": "mesh",
                                  "value": {
                                    "stringValue": "%KUMA_MESH%"
                                  }
                                }
                              ]
                            }
                          },
                          "x-kubernetes-preserve-unknown-fields": true
                        },
                        "endpoint": {
                          "default": "",
                          "description": "Endpoint of OpenTelemetry collector. An empty port defaults to 4317.\n\nDeprecated: use BackendRef instead.",
                          "example": "otel-collector:4317",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "tcp": {
                      "description": "TCPBackend defines a TCP logging backend.",
                      "properties": {
                        "address": {
                          "description": "Address of the TCP logging backend",
                          "example": "127.0.0.1:5000",
                          "minLength": 1,
                          "type": "string"
                        },
                        "format": {
                          "description": "Format of access logs. Placeholders available on\nhttps://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators",
                          "properties": {
                            "json": {
                              "example": [
                                {
                                  "key": "start_time",
                                  "value": "%START_TIME%"
                                },
                                {
                                  "key": "bytes_received",
                                  "value": "%BYTES_RECEIVED%"
                                }
                              ],
                              "items": {
                                "properties": {
                                  "key": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "key",
                                  "value"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "omitEmptyValues": {
                              "default": false,
                              "type": "boolean"
                            },
                            "plain": {
                              "example": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%",
                              "type": "string"
                            },
                            "type": {
                              "enum": [
                                "Plain",
                                "Json"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "address"
                      ],
                      "type": "object"
                    },
                    "type": {
                      "enum": [
                        "Tcp",
                        "File",
                        "OpenTelemetry"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "type": "object"
          },
          "matches": {
            "description": "Matches defines a list of conditions (by SpiffeID or SNI) that select the\ntraffic this rule applies to. Rules fire independently: a connection that\nsatisfies multiple rules is logged to every matching rule's backends.",
            "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"
          }
        },
        "required": [
          "default"
        ],
        "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 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 configurations",
      "items": {
        "properties": {
          "default": {
            "description": "Default is a configuration specific to the group of destinations referenced in\n'targetRef'",
            "properties": {
              "backends": {
                "items": {
                  "properties": {
                    "file": {
                      "description": "FileBackend defines configuration for file based access logs",
                      "properties": {
                        "format": {
                          "description": "Format of access logs. Placeholders available on\nhttps://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators",
                          "properties": {
                            "json": {
                              "example": [
                                {
                                  "key": "start_time",
                                  "value": "%START_TIME%"
                                },
                                {
                                  "key": "bytes_received",
                                  "value": "%BYTES_RECEIVED%"
                                }
                              ],
                              "items": {
                                "properties": {
                                  "key": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "key",
                                  "value"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "omitEmptyValues": {
                              "default": false,
                              "type": "boolean"
                            },
                            "plain": {
                              "example": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%",
                              "type": "string"
                            },
                            "type": {
                              "enum": [
                                "Plain",
                                "Json"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "type": "object"
                        },
                        "path": {
                          "description": "Path to a file that logs will be written to",
                          "example": "/tmp/access.log",
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "path"
                      ],
                      "type": "object"
                    },
                    "openTelemetry": {
                      "description": "Defines an OpenTelemetry logging backend.",
                      "properties": {
                        "attributes": {
                          "description": "Attributes defines custom OpenTelemetry attributes. Keys must be static\nOpenTelemetry attribute names. Values can contain placeholders available on\nhttps://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators",
                          "example": [
                            {
                              "key": "mesh",
                              "value": "%KUMA_MESH%"
                            }
                          ],
                          "items": {
                            "properties": {
                              "key": {
                                "description": "Key is the OpenTelemetry attribute name.",
                                "pattern": "^[a-z]([a-z0-9]|[._][a-z0-9])*$",
                                "type": "string"
                              },
                              "value": {
                                "description": "Value can contain Kuma placeholders.",
                                "type": "string"
                              }
                            },
                            "required": [
                              "key",
                              "value"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "backendRef": {
                          "description": "BackendRef is a reference to a MeshOpenTelemetryBackend resource that\ndefines the collector endpoint. Mutually exclusive with Endpoint.",
                          "properties": {
                            "kind": {
                              "description": "Kind of the backend resource.",
                              "enum": [
                                "MeshOpenTelemetryBackend"
                              ],
                              "type": "string"
                            },
                            "labels": {
                              "additionalProperties": {
                                "type": "string"
                              },
                              "description": "Labels to match the referenced resource. When multiple resources match,\nthe oldest by creation time wins.",
                              "type": "object"
                            }
                          },
                          "required": [
                            "kind"
                          ],
                          "type": "object"
                        },
                        "body": {
                          "description": "Body is a raw string or an OTLP any value as described at\nhttps://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#field-body\nIt can contain placeholders available on\nhttps://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators",
                          "example": {
                            "kvlistValue": {
                              "values": [
                                {
                                  "key": "mesh",
                                  "value": {
                                    "stringValue": "%KUMA_MESH%"
                                  }
                                }
                              ]
                            }
                          },
                          "x-kubernetes-preserve-unknown-fields": true
                        },
                        "endpoint": {
                          "default": "",
                          "description": "Endpoint of OpenTelemetry collector. An empty port defaults to 4317.\n\nDeprecated: use BackendRef instead.",
                          "example": "otel-collector:4317",
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "tcp": {
                      "description": "TCPBackend defines a TCP logging backend.",
                      "properties": {
                        "address": {
                          "description": "Address of the TCP logging backend",
                          "example": "127.0.0.1:5000",
                          "minLength": 1,
                          "type": "string"
                        },
                        "format": {
                          "description": "Format of access logs. Placeholders available on\nhttps://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators",
                          "properties": {
                            "json": {
                              "example": [
                                {
                                  "key": "start_time",
                                  "value": "%START_TIME%"
                                },
                                {
                                  "key": "bytes_received",
                                  "value": "%BYTES_RECEIVED%"
                                }
                              ],
                              "items": {
                                "properties": {
                                  "key": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "key",
                                  "value"
                                ],
                                "type": "object"
                              },
                              "type": "array"
                            },
                            "omitEmptyValues": {
                              "default": false,
                              "type": "boolean"
                            },
                            "plain": {
                              "example": "[%START_TIME%] %KUMA_MESH% %UPSTREAM_HOST%",
                              "type": "string"
                            },
                            "type": {
                              "enum": [
                                "Plain",
                                "Json"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "address"
                      ],
                      "type": "object"
                    },
                    "type": {
                      "enum": [
                        "Tcp",
                        "File",
                        "OpenTelemetry"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "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": [
          "default",
          "targetRef"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}

번역할 문서 내용이 아직 전달되지 않았어요. Kong 문서 조각(마크다운)을 붙여넣어 주시면, 규칙에 따라 한국어로 번역해 드릴게요.

관련 자료

더 알아보기 (Learn more)