This repository was archived by the owner on Sep 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
features and usages
Jihoon Seo edited this page Aug 20, 2021
·
1 revision
cb-operator는 Docker Compose 모드와 Kubernetes 모드를 지원한다.
cb-operator를 컴파일한 뒤 실행하면, 두 모드 중 하나를 고를 수 있다.
❯ ./operator
CB_OPERATOR_MODE file does not exist.
[Options]
1: Docker Compose environment (Requires Docker and Docker Compose)
2: Kubernetes environment (Requires Kubernetes cluster with Helm 3)
Choose 1 or 2:
이 때 1 또는 2를 입력하면, operator 바이너리가 있는 경로에 CB_OPERATOR_MODE 파일이 생성되며,
이 파일의 내용은 DockerCompose 또는 Kubernetes로 기록된다.
이후 operator 바이너리가 실행될 때마다 CB_OPERATOR_MODE 파일의 내용을 참조하여 동작하며,
사용자가 동작 모드를 바꾸고 싶은 경우에는 CB_OPERATOR_MODE 파일의 내용을 원하는 모드로 직접 변경하거나
CB_OPERATOR_MODE 파일(의 내용)을 변경/삭제하고 operator 바이너리를 실행하면 다시 두 모드 중 하나를 고를 수 있다.
cb-operator - Docker Compose 모드는 다음의 기능을 지원한다.
-
./operator pull: Cloud-Barista를 구성하는 컨테이너 이미지를 pull 한다. -
./operator run: Cloud-Barista를 실행한다. 이미지가 pull 되어 있지 않은 상태이면, 자동으로 pull 후 실행한다. -
./operator info: 현재 실행 중인 Cloud-Barista의 정보를 표시한다. -
./operator stop: 현재 실행 중인 Cloud-Barista를 중지한다. -
./operator remove: 현재 실행 중인 Cloud-Barista를 중지하고, 컨테이너를 삭제한다.-
-i:pull또는run명령으로 pull 되었던 컨테이너 이미지를 삭제한다. -
-v:run명령으로 attach되었던 볼륨을 삭제한다.
-
- 공통 옵션
-
-f: 기본값 외의 다른docker-compose.yaml파일을 지정한다. (예:./operator pull -f ../docker-compose-mode-files/docker-compose.yaml)
-
cb-operator - Kubernetes 모드는 다음의 기능을 지원한다.
-
./operator pull: Cloud-Barista를 구성하는 컨테이너 이미지를 pull 한다. -
./operator run: Cloud-Barista를 실행한다. 이미지가 pull 되어 있지 않은 상태이면, 자동으로 pull 후 실행한다. -
./operator info: 현재 실행 중인 Cloud-Barista의 정보를 표시한다. -
./operator update: (사용자가 Cloud-Barista Helm chart를 수정한 이후에) 이 명령을 실행하면, Cloud-Barista Helm release를 업데이트한다. -
./operator weave-scope-
./operator weave-scope install: K8s cluster에 Weave Scope를 설치한다. -
./operator weave-scope uninstall: K8s cluster에서 Weave Scope를 삭제한다.
-
-
./operator stop: 현재 실행 중인 Cloud-Barista를 중지한다. -
./operator remove: 현재 실행 중인 Cloud-Barista를 중지하고, 컨테이너를 삭제한다.
- Overview
- cb-operator modes
- Features & Usages
- Design of the CB-Bridge framework
- Checklist to apply each FW's changes