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

구성 생성·업데이트 명령어

원문 보기 위키 갱신

구성 생성·업데이트 명령어 (deck gateway apply)

deck gateway apply 명령어는 기존 구성을 삭제하지 않으면서 Kong Gateway의 엔티티를 생성하거나 업데이트해요. 구성을 점진적으로 만들어 갈 때 특히 유용한 명령이에요. 이 문서에서는 기본 사용 예시와 주요 플래그를 살펴보고, 작업이 끝난 후 deck gateway dump로 백업하고 deck gateway sync로 적용하는 흐름까지 안내해요

출처: 문서

본문

예를 들어요:

echo '_format_version: "3.0"
services:
- name: example-service
  url: http://httpbin.konghq.com' | deck gateway apply

설정 작업을 다 마쳤다면 deck gateway dump를 사용해 전체 설정을 파일로 백업하는 것을 추천해요. 이 파일은 이후 deck gateway sync와 함께 사용할 수 있어요.

명령어 사용법

Usage:
  deck gateway apply [flags] [kong-state-files...]

Flags:
      --db-update-propagation-delay db_update_propagation   artificial delay (in seconds) that is injected between insert operations 
                                                            for related entities (usually for Cassandra deployments).
                                                            See db_update_propagation in kong.conf.
  -W, --errors-as-warnings string                           Treat the given comma-separated diagnostic codes as warnings.
  -h, --help                                                help for apply
      --include-plugin-definitions                          allow deck to apply plugin definitions.
                                                            Plugin definitions work with Konnect and Gateway versions >= 3.15.
      --json-output                                         generate command execution report in a JSON format
      --parallelism int                                     Maximum number of concurrent operations. (default 10)
      --silence-events                                      disable printing events to stdout
      --skip-hash-for-basic-auth                            do not sync hash for basic auth credentials.
                                                            This flag is only valid with Konnect.
  -E, --warnings-as-errors string                           Treat the given comma-separated diagnostic codes as errors.
  -w, --workspace string                                    Apply configuration to a specific workspace (Kong Enterprise only).
                                                            This takes precedence over _workspace fields in state files.

관련 리소스

더 알아보기 (Learn more)