문서 메뉴
문서 홈
/ /
아틀라스 CLI
/ / /

Atlas Kubernetes config 적용

이 페이지의 내용

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

Atlas Kubernetes Operator와 함께 사용할 Kubernetes 구성 리소스를 생성하고 적용합니다.

이 명령은 프로젝트, 배포, 사용자를 포함한 Atlas 객체에 대한 구성을 Kubernetes로 직접 내보내므로, Atlas Kubernetes Operator를 사용하여 이러한 리소스를 관리할 수 있습니다. 자세한 내용은 https://www.mongodb.com/ko-kr/docs/atlas/atlas-operator/를 참조하세요.

명령 구문
atlas kubernetes config apply [options]
이름
유형
필수 사항
설명
--clusterName
strings
거짓
가져올 하나 이상의 쉼표로 구분된 cluster 이름
-h, --help
거짓
지원 도움말
--kubeContext
문자열
거짓
사용할 kubeconfig 컨텍스트의 이름입니다.
--kubeconfig
문자열
거짓
Atlas CLI 요청에 사용할 kubeconfig 파일의 경로입니다.
--operatorVersion
문자열
거짓
리소스를 생성할 Atlas Kubernetes Operator의 버전입니다.
--orgId
문자열
거짓
사용할 조직 ID입니다. 이 옵션은 구성 파일 또는 환경 변수의 설정을 재정의합니다.
--projectId
문자열
거짓
사용할 프로젝트를 식별하는 16진수 문자열입니다. 이 옵션은 구성 파일 또는 환경 변수의 설정을 재정의합니다.
--targetNamespace
문자열
거짓
생성된 Kubernetes 엔터티에 사용할 네임스페이스
이름
유형
필수 사항
설명
-P, --profile
문자열
거짓
# Export and apply all supported resources of a specific project:
atlas kubernetes config apply --projectId=<projectId>
# Export and apply all supported resources of a specific project and to a specific namespace:
atlas kubernetes config apply --projectId=<projectId> --targetNamespace=<namespace>
# Export and apply all supported Project resource, and only the described Deployment resources of a specific project to a specific namespace:
atlas kubernetes config apply --projectId=<projectId> --clusterName=<cluster-name-1, cluster-name-2> --targetNamespace=<namespace>
# Export and apply all supported resources of a specific project to a specific namespace restricting the version of the Atlas Kubernetes Operator:
atlas kubernetes config apply --projectId=<projectId> --targetNamespace=<namespace> --operatorVersion=1.5.1

돌아가기

설정

다음

생성

이 페이지의 내용