Docs Menu
Docs Home
/ /
Atlas CLI
/ / /

Atlas Kubernetes Operator 설치

이 페이지의 내용

  • 구문
  • 옵션
  • 상속된 옵션
  • 예제

Atlas Kubernetes Operator를 cluster에 설치합니다.

이 명령은 지원되는 버전의 Atlas Kubernetes Operator를 기존 클러스터에 설치하고, 선택적으로 연산자가 관리하는 Atlas 리소스를 가져옵니다.

이 명령은 연산자에 대한 API 키를 생성하고 이를 Kubernetes에 비밀로 추가한 다음 연산자가 이를 사용하여 Atlas 관리자 API를 호출합니다. --projectName 옵션을 지정하면 키 범위가 프로젝트로 지정되고, --projectName 옵션을 지정하지 않으면 조직으로 지정됩니다.

명령 구문
atlas kubernetes operator install [options]
이름
유형
필수 사항
설명
--atlasGov
거짓
정부용 Atlas를 연산자의 대상으로 구성할지 여부를 나타내는 플래그입니다.
-h, --help
거짓
설치 도움말
--import
거짓
연산자가 managed할 수 있도록 기존 Atlas 리소스를 cluster로 가져올지 여부를 나타내는 플래그입니다.
--kubeContext
문자열
거짓
사용할 kubeconfig 컨텍스트의 이름입니다.
--kubeconfig
문자열
거짓
Atlas CLI 요청에 사용할 kubeconfig 파일의 경로입니다.
--operatorVersion
문자열
거짓
설치할 연산자의 버전입니다.
--orgId
문자열
거짓
사용할 조직 ID입니다. 이 옵션은 구성 파일 또는 환경 변수의 설정을 재정의합니다.
--projectName
문자열
거짓
생성하거나 설치된 연산자와 함께 사용할 프로젝트의 이름입니다.
--resourceDeletionProtection
거짓
프로젝트, 배포 등과 같은 리소스에 대한 연산자 삭제 보호를 전환합니다. 자세한 내용은 다음을 참조하세요 .Atlas 이 값의 기본값은 true입니다.
--subresourceDeletionProtection
거짓
경고, 통합 등과 같은 하위 리소스에 대한 Atlas 연산자 삭제 보호를 토글합니다. 자세한 내용은https://dochub.mongodb.org/core/ako-deletion- 보호를 참조하세요. 이 값의 기본값은 true입니다.
--targetNamespace
문자열
거짓
연산자를 설치할 네임스페이스입니다.
--watchNamespace
strings
거짓
연산자가 수신할 네임스페이스가 포함된 목록입니다.
이름
유형
필수 사항
설명
-P, --profile
문자열
거짓
구성 파일에서 사용할 프로필의 이름입니다. Atlas CLI의 프로필에 대해 자세히 알아보려면 https://dochub.mongodb.org/core/atlas-cli-save-connection-settings를 참조하세요.
# Install latest version of the operator into the default namespace:
atlas kubernetes operator install
# Install the latest version of the operator targeting Atlas for Government instead of regular commercial Atlas:
atlas kubernetes operator install --atlasGov
# Install a specific version of the operator:
atlas kubernetes operator install --operatorVersion=1.7.0
# Install a specific version of the operator to a namespace and watch only this namespace and a second one:
atlas kubernetes operator install --operatorVersion=1.7.0 --targetNamespace=<namespace> --watchNamespace=<namespace>,<secondNamespace>
# Install and import all objects from an organization:
atlas kubernetes operator install --targetNamespace=<namespace> --orgID <orgID> --import
# Install and import objects from a specific project:
atlas kubernetes operator install --targetNamespace=<namespace> --orgID <orgID> --projectName <project> --import
# Install the operator and disable deletion protection:
atlas kubernetes operator install --resourceDeletionProtection=false
# Install the operator and disable deletion protection for sub-resources (Atlas project integrations, private endpoints, etc.):
atlas kubernetes operator install --subresourceDeletionProtection=false

돌아가기

연산자

이 페이지의 내용