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

calicoctl datastore migrate lock

원문 보기 위키 갱신

이 섹션은 calicoctl datastore migrate lock 명령을 설명해요.

calicoctl 명령 전체 목록은 calicoctl 개요를 참고하세요.

출처: calicoctl datastore migrate lock

본문

'calicoctl datastore migrate lock' 명령의 도움말 보기

calicoctl datastore migrate lock --help를 실행하면 다음과 같은 도움말 메뉴가 표시돼요.

Lock the datastore to prevent changes during a migration. Run this before
exporting so nothing changes while the migration is in progress.

Usage:
  calicoctl datastore migrate lock [flags]

Examples:
  calicoctl datastore migrate lock

Flags:
  -c, --config string   Path to the file containing connection configuration in YAML or JSON format. (default "/etc/calico/calicoctl.cfg")
  -h, --help            help for lock

Global Flags:
      --allow-version-mismatch   Allow client and cluster versions mismatch
      --context string           The name of the kubeconfig context to use
  -l, --log-level string         Set the log level (panic, fatal, error, warn, info, debug) (default "panic")

예제

데이터스토어를 잠가서 마이그레이션을 준비하면, 마이그레이션 동안 데이터에 가해지는 변경이 클러스터에 영향을 주지 않아요.

calicoctl datastore migrate lock

일반 옵션

-c, --config string   Path to the file containing connection configuration in YAML or JSON format. (default "/etc/calico/calicoctl.cfg")

더 알아보기 (See also)

더 알아보기 (Learn more)

migrate lock은 마이그레이션 동안 데이터스토어 변경을 막기 위해 잠그는 명령이에요. export 전에 실행해서 진행 중에 데이터가 바뀌지 않게 해요. 잠긴 동안은 새 파드가 시작되지 않는다는 점을 유의하세요.