Datakit: 사용자 지정 CA로 TLS 연결 검증
Datakit: 사용자 지정 CA로 TLS 연결 검증 (Datakit: Verify TLS connection using a custom CA)
이 문서는 Datakit 플러그인의 ca_certificates 필드를 사용해 call 노드의 아웃바운드 TLS 연결을 Kong Gateway의 전역 신뢰 CA 스토어 대신 프라이빗 CA로 검증하는 방법을 설명해요. 전역 신뢰 스토어에 추가할 수 없는 프라이빗 CA로 서명된 인증서를 사용하는 내부 서비스에 연결할 때, 예를 들어 Konnect Dedicated Cloud Gateways 환경에서 특히 유용해요. AUTHOR와 EXIT 노드로 구성된 예제를 통해 decK와 Admin API로 플러그인을 설정하는 방법을 단계별로 안내하고, 검증에 실패하면 500 응답이 반환된다는 동작도 함께 확인할 수 있어요
출처: 문서
본문
커스텀 CA로 TLS 연결 검증하기v3.16+
플러그인의 ca_certificates 필드를 사용하면 Kong Gateway의 전역 신뢰 CA 스토어에 의존하지 않고, 프라이빗 CA를 기준으로 call 노드의 아웃바운드 TLS 연결을 검증할 수 있어요.
이 기능은 call 노드가 전역 신뢰 스토어에 추가할 수 없는 프라이빗 CA로 서명된 인증서를 가진 내부 서비스에 접속할 때 유용해요.
예를 들어 Konnect Dedicated Cloud Gateway에서 그렇죠.
이 예시에는 다음 노드들이 포함돼요:
AUTHOR노드는 내부 HTTPS 엔드포인트를 호출해요. 이 노드의 인증서는 전역 신뢰 CA 스토어 대신ca_certificates에서 참조하는 CA Certificate 객체로 검증돼요.EXIT노드는 호출의 응답 본문을 클라이언트에 그대로 반환해요.
내부 엔드포인트의 인증서가 ca_certificates에 있는 CA로 서명되지 않았다면,
AUTHOR 노드는 TLS 검증 오류로 실패하고, EXIT에 도달하지 못한 채 Datakit이 500 응답을 반환해요.
참고:
ca_certificates는 플러그인 설정의 루트에 설정돼요. 플러그인 인스턴스의 모든call노드는 같은 신뢰 스토어를 공유해요. 설정하면 아웃바운드 호출을 검증할 때 전역 신뢰 CA 스토어를 대체하므로, 프라이빗 CA와 함께 아직 신뢰해야 하는 퍼블릭 CA도 포함하세요. 노드의ssl_verify가false이면 이 필드는 아무 효과가 없어요.
사전 준비
- 프라이빗 CA를 CA Certificate 객체로 Kong Gateway에 추가한 상태여야 해요.
환경 변수
-
CA_CERT_ID: Kong Gateway에 있는 여러분의 CA Certificate 객체 ID예요. -
SERVICE_URL:AUTHOR노드가 호출할 내부 서비스의 URL이에요.
플러그인 설정하기
전역
decK
이 섹션을 kong.yaml 설정 파일에 추가하세요:
_format_version: "3.0"
plugins:
- name: datakit
config:
ca_certificates:
- ${{ env "DECK_CA_CERT_ID" }}
nodes:
- name: AUTHOR
type: call
url: ${{ env "DECK_SERVICE_URL" }}
ssl_verify: true
- name: EXIT
type: exit
inputs:
body: AUTHOR.body
status: 200
{: data-file="kong.yaml" data-tool="deck" }
Admin API
다음 요청을 보내세요:
curl -i -X POST http://localhost:8001/plugins/ \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '
{
"name": "datakit",
"config": {
"ca_certificates": [
"'$CA_CERT_ID'"
],
"nodes": [
{
"name": "AUTHOR",
"type": "call",
"url": "'$SERVICE_URL'",
"ssl_verify": true
},
{
"name": "EXIT",
"type": "exit",
"inputs": {
"body": "AUTHOR.body"
},
"status": 200
}
]
}
}
'
Konnect API
다음 요청을 보내세요:
curl -X POST https://{region}.api.konghq.com/v2/control-planes/{controlPlaneId}/core-entities/plugins/ \
--header "accept: application/json" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $KONNECT_TOKEN" \
--data '
{
"name": "datakit",
"config": {
"ca_certificates": [
"'$CA_CERT_ID'"
],
"nodes": [
{
"name": "AUTHOR",
"type": "call",
"url": "'$SERVICE_URL'",
"ssl_verify": true
},
{
"name": "EXIT",
"type": "exit",
"inputs": {
"body": "AUTHOR.body"
},
"status": 200
}
]
}
}
'
다음 플레이스홀더는 반드시 여러분의 값으로 바꾸세요:
-
region: Kong Konnect가 호스팅되고 운영되는 지리적 지역이에요. -
KONNECT_TOKEN: Konnect 계정과 연결된 개인 액세스 토큰(PAT)이에요. -
controlPlaneId: 컨트롤 플레인의id예요.
지역별 URL과 개인 액세스 토큰에 대해 알아보려면 Konnect Control Planes Config API reference를 참고하세요.
KIC
echo "
apiVersion: configuration.konghq.com/v1
kind: KongClusterPlugin
metadata:
name:
namespace: kong
annotations:
kubernetes.io/ingress.class: kong
labels:
global: 'true'
config:
ca_certificates:
- '$CA_CERT_ID'
nodes:
- name: AUTHOR
type: call
url: '$SERVICE_URL'
ssl_verify: true
- name: EXIT
type: exit
inputs:
body: AUTHOR.body
status: 200
plugin: datakit
" | kubectl apply -f -
Terraform
사전 준비: 개인 액세스 토큰 설정하기
terraform {
required_providers {
konnect = {
source = "kong/konnect"
}
}
}
provider "konnect" {
personal_access_token = "$KONNECT_TOKEN"
server_url = "https://us.api.konghq.com/"
}
Konnect Gateway 플러그인을 생성하려면 Terraform 설정에 다음을 추가하세요:
resource "konnect_gateway_plugin_datakit" "my_datakit" {
enabled = true
config = {
ca_certificates = [var.ca_cert_id]
nodes = [
{
name = "AUTHOR"
type = "call"
url = var.service_url
ssl_verify = true
},
{
name = "EXIT"
type = "exit"
inputs = {
body = "AUTHOR.body"
}
status = 200
} ]
}
control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
}
이 예시에는 다음 변수들이 매니페스트에 추가되어 있어야 해요. TF_VAR_name=value 형식으로 설정하면 런타임에 값을 지정할 수 있어요.
variable "ca_cert_id" {
type = string
}
variable "service_url" {
type = string
}
서비스
decK
이 섹션을 kong.yaml 설정 파일에 추가하세요:
_format_version: "3.0"
plugins:
- name: datakit
service: serviceName|Id
config:
ca_certificates:
- ${{ env "DECK_CA_CERT_ID" }}
nodes:
- name: AUTHOR
type: call
url: ${{ env "DECK_SERVICE_URL" }}
ssl_verify: true
- name: EXIT
type: exit
inputs:
body: AUTHOR.body
status: 200
{: data-file="kong.yaml" data-tool="deck" }
다음 플레이스홀더는 반드시 여러분의 값으로 바꾸세요:
serviceName|Id: 플러그인 설정이 대상으로 할 서비스의id또는name이에요.
Admin API
다음 요청을 보내세요:
curl -i -X POST http://localhost:8001/services/{serviceName|Id}/plugins/ \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '
{
"name": "datakit",
"config": {
"ca_certificates": [
"'$CA_CERT_ID'"
],
"nodes": [
{
"name": "AUTHOR",
"type": "call",
"url": "'$SERVICE_URL'",
"ssl_verify": true
},
{
"name": "EXIT",
"type": "exit",
"inputs": {
"body": "AUTHOR.body"
},
"status": 200
}
]
}
}
'
다음 플레이스홀더는 반드시 여러분의 값으로 바꾸세요:
serviceName|Id: 플러그인 설정이 대상으로 할 서비스의id또는name이에요.
Konnect API
다음 요청을 보내세요:
curl -X POST https://{region}.api.konghq.com/v2/control-planes/{controlPlaneId}/core-entities/services/{serviceId}/plugins/ \
--header "accept: application/json" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $KONNECT_TOKEN" \
--data '
{
"name": "datakit",
"config": {
"ca_certificates": [
"'$CA_CERT_ID'"
],
"nodes": [
{
"name": "AUTHOR",
"type": "call",
"url": "'$SERVICE_URL'",
"ssl_verify": true
},
{
"name": "EXIT",
"type": "exit",
"inputs": {
"body": "AUTHOR.body"
},
"status": 200
}
]
}
}
'
다음 플레이스홀더는 반드시 여러분의 값으로 바꾸세요:
-
region: Kong Konnect가 호스팅되고 운영되는 지리적 지역이에요. -
KONNECT_TOKEN: Konnect 계정과 연결된 개인 액세스 토큰(PAT)이에요. -
controlPlaneId: 컨트롤 플레인의id예요. -
serviceId: 플러그인 설정이 대상으로 할 서비스의id예요.
지역별 URL과 개인 액세스 토큰에 대해 알아보려면 Konnect Control Planes Config API reference를 참고하세요.
KIC
echo "
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name:
namespace: kong
annotations:
kubernetes.io/ingress.class: kong
config:
ca_certificates:
- '$CA_CERT_ID'
nodes:
- name: AUTHOR
type: call
url: '$SERVICE_URL'
ssl_verify: true
- name: EXIT
type: exit
inputs:
body: AUTHOR.body
status: 200
plugin: datakit
" | kubectl apply -f -
다음으로, service 리소스에 어노테이션을 붙여서 KongPlugin 리소스를 적용하세요:
kubectl annotate -n kong service SERVICE_NAME konghq.com/plugins=
Terraform
사전 준비: 개인 액세스 토큰 설정하기
terraform {
required_providers {
konnect = {
source = "kong/konnect"
}
}
}
provider "konnect" {
personal_access_token = "$KONNECT_TOKEN"
server_url = "https://us.api.konghq.com/"
}
Konnect Gateway 플러그인을 생성하려면 Terraform 설정에 다음을 추가하세요:
resource "konnect_gateway_plugin_datakit" "my_datakit" {
enabled = true
config = {
ca_certificates = [var.ca_cert_id]
nodes = [
{
name = "AUTHOR"
type = "call"
url = var.service_url
ssl_verify = true
},
{
name = "EXIT"
type = "exit"
inputs = {
body = "AUTHOR.body"
}
status = 200
} ]
}
control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
service = {
id = konnect_gateway_service.my_service.id
}
}
이 예시에는 다음 변수들이 매니페스트에 추가되어 있어야 해요. TF_VAR_name=value 형식으로 설정하면 런타임에 값을 지정할 수 있어요.
variable "ca_cert_id" {
type = string
}
variable "service_url" {
type = string
}
라우트
decK
이 섹션을 kong.yaml 설정 파일에 추가하세요:
_format_version: "3.0"
plugins:
- name: datakit
route: routeName|Id
config:
ca_certificates:
- ${{ env "DECK_CA_CERT_ID" }}
nodes:
- name: AUTHOR
type: call
url: ${{ env "DECK_SERVICE_URL" }}
ssl_verify: true
- name: EXIT
type: exit
inputs:
body: AUTHOR.body
status: 200
{: data-file="kong.yaml" data-tool="deck" }
다음 플레이스홀더는 반드시 여러분의 값으로 바꾸세요:
routeName|Id: 플러그인 설정이 대상으로 할 라우트의id또는name이에요.
Admin API
다음 요청을 보내세요:
curl -i -X POST http://localhost:8001/routes/{routeName|Id}/plugins/ \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '
{
"name": "datakit",
"config": {
"ca_certificates": [
"'$CA_CERT_ID'"
],
"nodes": [
{
"name": "AUTHOR",
"type": "call",
"url": "'$SERVICE_URL'",
"ssl_verify": true
},
{
"name": "EXIT",
"type": "exit",
"inputs": {
"body": "AUTHOR.body"
},
"status": 200
}
]
}
}
'
다음 플레이스홀더는 반드시 여러분의 값으로 바꾸세요:
routeName|Id: 플러그인 설정이 대상으로 할 라우트의id또는name이에요.
Konnect API
다음 요청을 보내세요:
curl -X POST https://{region}.api.konghq.com/v2/control-planes/{controlPlaneId}/core-entities/routes/{routeId}/plugins/ \
--header "accept: application/json" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $KONNECT_TOKEN" \
--data '
{
"name": "datakit",
"config": {
"ca_certificates": [
"'$CA_CERT_ID'"
],
"nodes": [
{
"name": "AUTHOR",
"type": "call",
"url": "'$SERVICE_URL'",
"ssl_verify": true
},
{
"name": "EXIT",
"type": "exit",
"inputs": {
"body": "AUTHOR.body"
},
"status": 200
}
]
}
}
'
다음 플레이스홀더를 여러분의 값으로 바꿔야 해요:
-
region: Kong Konnect가 호스팅되고 운영되는 지리적 지역이에요. -
KONNECT_TOKEN: Konnect 계정과 연결된 개인 액세스 토큰(PAT)이에요. -
controlPlaneId: 컨트롤 플레인의id예요. -
routeId: 플러그인 구성이 대상으로 할 라우트의id예요.
지역별 URL과 개인 액세스 토큰에 대해 알아보려면 Konnect Control Planes Config API 레퍼런스를 확인하세요.
KIC
echo "
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name:
namespace: kong
annotations:
kubernetes.io/ingress.class: kong
config:
ca_certificates:
- '$CA_CERT_ID'
nodes:
- name: AUTHOR
type: call
url: '$SERVICE_URL'
ssl_verify: true
- name: EXIT
type: exit
inputs:
body: AUTHOR.body
status: 200
plugin: datakit
" | kubectl apply -f -
다음으로, httproute 또는 ingress 리소스에 어노테이션을 추가해서 KongPlugin 리소스를 적용하세요:
Gateway API
kubectl annotate -n kong httproute konghq.com/plugins=
Ingress
kubectl annotate -n kong ingress konghq.com/plugins=
Terraform
사전 조건: 개인 액세스 토큰 구성하기
terraform {
required_providers {
konnect = {
source = "kong/konnect"
}
}
}
provider "konnect" {
personal_access_token = "$KONNECT_TOKEN"
server_url = "https://us.api.konghq.com/"
}
Konnect Gateway 플러그인을 생성하려면 Terraform 구성에 다음을 추가하세요:
resource "konnect_gateway_plugin_datakit" "my_datakit" {
enabled = true
config = {
ca_certificates = [var.ca_cert_id]
nodes = [
{
name = "AUTHOR"
type = "call"
url = var.service_url
ssl_verify = true
},
{
name = "EXIT"
type = "exit"
inputs = {
body = "AUTHOR.body"
}
status = 200
} ]
}
control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
route = {
id = konnect_gateway_route.my_route.id
}
}
이 예제를 사용하려면 다음 변수들을 매니페스트에 추가해야 해요. TF_VAR_name=value를 설정하면 런타임에 값을 지정할 수 있어요.
variable "ca_cert_id" {
type = string
}
variable "service_url" {
type = string
}
컨슈머
decK
이 섹션을 kong.yaml 구성 파일에 추가하세요:
_format_version: "3.0"
plugins:
- name: datakit
consumer: consumerName|Id
config:
ca_certificates:
- ${{ env "DECK_CA_CERT_ID" }}
nodes:
- name: AUTHOR
type: call
url: ${{ env "DECK_SERVICE_URL" }}
ssl_verify: true
- name: EXIT
type: exit
inputs:
body: AUTHOR.body
status: 200
{: data-file="kong.yaml" data-tool="deck" }
다음 플레이스홀더를 여러분의 값으로 바꿔야 해요:
consumerName|Id: 플러그인 구성이 대상으로 할 컨슈머의id또는name이에요.
Admin API
다음 요청을 보내세요:
curl -i -X POST http://localhost:8001/consumers/{consumerName|Id}/plugins/ \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '
{
"name": "datakit",
"config": {
"ca_certificates": [
"'$CA_CERT_ID'"
],
"nodes": [
{
"name": "AUTHOR",
"type": "call",
"url": "'$SERVICE_URL'",
"ssl_verify": true
},
{
"name": "EXIT",
"type": "exit",
"inputs": {
"body": "AUTHOR.body"
},
"status": 200
}
]
}
}
'
다음 플레이스홀더를 여러분의 값으로 바꿔야 해요:
consumerName|Id: 플러그인 구성이 대상으로 할 컨슈머의id또는name이에요.
Konnect API
다음 요청을 보내세요:
curl -X POST https://{region}.api.konghq.com/v2/control-planes/{controlPlaneId}/core-entities/consumers/{consumerId}/plugins/ \
--header "accept: application/json" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $KONNECT_TOKEN" \
--data '
{
"name": "datakit",
"config": {
"ca_certificates": [
"'$CA_CERT_ID'"
],
"nodes": [
{
"name": "AUTHOR",
"type": "call",
"url": "'$SERVICE_URL'",
"ssl_verify": true
},
{
"name": "EXIT",
"type": "exit",
"inputs": {
"body": "AUTHOR.body"
},
"status": 200
}
]
}
}
'
다음 플레이스홀더를 여러분의 값으로 바꿔야 해요:
-
region: Kong Konnect가 호스팅되고 운영되는 지리적 지역이에요. -
KONNECT_TOKEN: Konnect 계정과 연결된 개인 액세스 토큰(PAT)이에요. -
controlPlaneId: 컨트롤 플레인의id예요. -
consumerId: 플러그인 구성이 대상으로 할 컨슈머의id예요.
지역별 URL과 개인 액세스 토큰에 대해 알아보려면 Konnect Control Planes Config API 레퍼런스를 확인하세요.
KIC
echo "
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name:
namespace: kong
annotations:
kubernetes.io/ingress.class: kong
config:
ca_certificates:
- '$CA_CERT_ID'
nodes:
- name: AUTHOR
type: call
url: '$SERVICE_URL'
ssl_verify: true
- name: EXIT
type: exit
inputs:
body: AUTHOR.body
status: 200
plugin: datakit
" | kubectl apply -f -
다음으로, KongConsumer 리소스에 어노테이션을 추가해서 KongPlugin 리소스를 적용하세요:
kubectl annotate -n kong kongconsumer CONSUMER_NAME konghq.com/plugins=
Terraform
사전 조건: 개인 액세스 토큰 구성하기
terraform {
required_providers {
konnect = {
source = "kong/konnect"
}
}
}
provider "konnect" {
personal_access_token = "$KONNECT_TOKEN"
server_url = "https://us.api.konghq.com/"
}
Konnect Gateway 플러그인을 생성하려면 Terraform 구성에 다음을 추가하세요:
resource "konnect_gateway_plugin_datakit" "my_datakit" {
enabled = true
config = {
ca_certificates = [var.ca_cert_id]
nodes = [
{
name = "AUTHOR"
type = "call"
url = var.service_url
ssl_verify = true
},
{
name = "EXIT"
type = "exit"
inputs = {
body = "AUTHOR.body"
}
status = 200
} ]
}
control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
consumer = {
id = konnect_gateway_consumer.my_consumer.id
}
}
이 예제를 사용하려면 다음 변수들을 매니페스트에 추가해야 해요. TF_VAR_name=value를 설정하면 런타임에 값을 지정할 수 있어요.
variable "ca_cert_id" {
type = string
}
variable "service_url" {
type = string
}
컨슈머 그룹
decK
이 섹션을 kong.yaml 구성 파일에 추가하세요:
_format_version: "3.0"
plugins:
- name: datakit
consumer_group: consumerGroupName|Id
config:
ca_certificates:
- ${{ env "DECK_CA_CERT_ID" }}
nodes:
- name: AUTHOR
type: call
url: ${{ env "DECK_SERVICE_URL" }}
ssl_verify: true
- name: EXIT
type: exit
inputs:
body: AUTHOR.body
status: 200
{: data-file="kong.yaml" data-tool="deck" }
다음 플레이스홀더를 여러분의 값으로 바꿔야 해요:
consumerGroupName|Id: 플러그인 구성이 대상으로 할 컨슈머 그룹의id또는name이에요.
Admin API
다음 요청을 보내세요:
curl -i -X POST http://localhost:8001/consumer_groups/{consumerGroupName|Id}/plugins/ \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '
{
"name": "datakit",
"config": {
"ca_certificates": [
"'$CA_CERT_ID'"
],
"nodes": [
{
"name": "AUTHOR",
"type": "call",
"url": "'$SERVICE_URL'",
"ssl_verify": true
},
{
"name": "EXIT",
"type": "exit",
"inputs": {
"body": "AUTHOR.body"
},
"status": 200
}
]
}
}
'
다음 플레이스홀더를 여러분의 값으로 바꿔야 해요:
consumerGroupName|Id: 플러그인 구성이 대상으로 할 컨슈머 그룹의id또는name이에요.
Konnect API
다음 요청을 보내세요:
curl -X POST https://{region}.api.konghq.com/v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{consumerGroupId}/plugins/ \
--header "accept: application/json" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $KONNECT_TOKEN" \
--data '
{
"name": "datakit",
"config": {
"ca_certificates": [
"'$CA_CERT_ID'"
],
"nodes": [
{
"name": "AUTHOR",
"type": "call",
"url": "'$SERVICE_URL'",
"ssl_verify": true
},
{
"name": "EXIT",
"type": "exit",
"inputs": {
"body": "AUTHOR.body"
},
"status": 200
}
]
}
}
'
다음 플레이스홀더를 여러분의 값으로 바꿔야 해요:
-
region: Kong Konnect가 호스팅되고 운영되는 지리적 지역이에요. -
KONNECT_TOKEN: Konnect 계정과 연결된 개인 액세스 토큰(PAT)이에요. -
controlPlaneId: 컨트롤 플레인의id예요. -
consumerGroupId: 플러그인 구성이 대상으로 할 컨슈머 그룹의id예요.
지역별 URL과 개인 액세스 토큰에 대해 알아보려면 Konnect Control Planes Config API 레퍼런스를 확인하세요.
KIC
echo "
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name:
namespace: kong
annotations:
kubernetes.io/ingress.class: kong
config:
ca_certificates:
- '$CA_CERT_ID'
nodes:
- name: AUTHOR
type: call
url: '$SERVICE_URL'
ssl_verify: true
- name: EXIT
type: exit
inputs:
body: AUTHOR.body
status: 200
plugin: datakit
" | kubectl apply -f -
다음으로, KongConsumerGroup 리소스에 어노테이션을 추가해서 KongPlugin 리소스를 적용하세요:
kubectl annotate -n kong kongconsumergroup CONSUMERGROUP_NAME konghq.com/plugins=
Terraform
사전 조건: 개인 액세스 토큰 구성하기
terraform {
required_providers {
konnect = {
source = "kong/konnect"
}
}
}
provider "konnect" {
personal_access_token = "$KONNECT_TOKEN"
server_url = "https://us.api.konghq.com/"
}
Konnect Gateway 플러그인을 생성하려면 Terraform 구성에 다음을 추가하세요:
resource "konnect_gateway_plugin_datakit" "my_datakit" {
enabled = true
config = {
ca_certificates = [var.ca_cert_id]
nodes = [
{
name = "AUTHOR"
type = "call"
url = var.service_url
ssl_verify = true
},
{
name = "EXIT"
type = "exit"
inputs = {
body = "AUTHOR.body"
}
status = 200
} ]
}
control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
consumer_group = {
id = konnect_gateway_consumer_group.my_consumer_group.id
}
}
이 예제를 사용하려면 다음 변수들을 매니페스트에 추가해야 해요. TF_VAR_name=value를 설정하면 런타임에 값을 지정할 수 있어요.
variable "ca_cert_id" {
type = string
}
variable "service_url" {
type = string
}
관련 자료
더 알아보기 (Learn more)
- Datakit 플러그인의 전체 개념과 동작 방식을 먼저 살펴봐요 — Datakit overview
- Datakit을 처음 시작하는 기본 사용법을 익혀요 — Get started with Datakit
- 프라이빗 CA를 Kong Gateway에 등록하는 CA Certificate 엔티티를 이해해요 — CA Certificate
- decK 설정 파일인 kong.yaml 작성 방법을 학습해요 —
kong.yaml - TLS 검증 오류 등 실행 문제를 Debugger로 추적해요 — Using Debugger for Datakit