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

AI Gateway 구성 내보내기

원문 보기 위키 갱신

AI Gateway 구성 내보내기 (deck ai dump)

deck ai dump 명령어는 Kong에 있는 AI Gateway 엔티티를 읽어와서 AI Gateway 형식 그대로 로컬 파일에 저장해요. managed_by:deck-ai 태그가 붙은 엔티티만 내보내며, --format 플래그로 YAML 또는 JSON 출력을 고를 수 있어요. Konnect에서는 --konnect-control-plane-name 플래그로 컨트롤 플레인을 하나씩 지정해 백업하고, Kong Gateway에서는 -w 플래그로 원하는 워크스페이스를 골라 백업할 수 있어요

출처: 문서

본문

이 명령어는 managed_by:deck-ai 태그가 있는 엔티티만 내보내요.

출력은 --format 플래그로 제어되며, YAML 또는 JSON 형식으로 작성할 수 있어요.

다음 명령어들은 모든 구성을 단일 파일 하나로 백업해요. 구성을 분할하는 방법을 알아보려면 태그를 참고하세요.

Konnect

decK는 Konnect에서 한 번에 하나의 컨트롤 플레인만 내보낼 수 있어요. 백업할 컨트롤 플레인을 선택하려면 --konnect-control-plane-name 플래그를 지정하세요:

deck ai dump \
  -o $YOUR_CP_NAME.yaml \
  --konnect-control-plane-name $YOUR_CP_NAME \
  --konnect-token $KONNECT_TOKEN

단일 Workspace

기본 Workspace를 사용 중이라면, decK가 백업할 Workspace를 자동으로 식별해요:

deck ai dump -o kong.yaml

다른 Workspace를 백업하려면 -w 플래그를 전달하세요:

deck ai dump -w $WORKSPACE_NAME -o $WORKSPACE_NAME.yaml

명령어 사용법

Usage:
  deck ai dump [flags]

Flags:
      --format string                output file format: json or yaml. (default "yaml")
  -h, --help                         help for dump
      --include-policy-definitions   allow deck to dump AI Gateway policy definitions.
                                     Policy definitions work with AI Gateway versions >= 2.2
  -o, --output-file -                file to which to write AI Gateway configuration. Use - to write to stdout. (default "-")
  -w, --workspace string             dump configuration of a specific Workspace (Kong Enterprise only).
      --yes yes                      assume yes to prompts and run non-interactively.

관련 리소스

더 알아보기 (Learn more)

  • 태그를 활용해 구성을 나눠서 백업하는 방법을 살펴보세요 — tags
  • deck에서 사용할 수 있는 AI 관련 명령어 전체를 확인해 보세요 — deck ai commands