Docs Menu
Docs Home
/ /
Atlas 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 generate [options]
이름
유형
필수 사항
설명
--clusterName
strings
거짓
가져올 하나 이상의 쉼표로 구분된 cluster 이름
--dataFederationName
strings
거짓
가져올 하나 이상의 쉼표로 구분된 Data Federation 이름
-h, --help
거짓
도움말 생성
--includeSecrets
거짓
프로젝트, 사용자, 배포 엔터티에 대한 데이터로 kubernetes 시크릿을 생성하는 플래그입니다.
--operatorVersion
문자열
거짓
리소스를 생성할 Atlas Kubernetes Operator의 버전입니다. 이 값의 기본값은 "2.4.0"입니다.
--orgId
문자열
거짓
사용할 조직 ID입니다. 이 옵션은 구성 파일 또는 환경 변수의 설정을 재정의합니다.
--projectId
문자열
거짓
사용할 프로젝트를 식별하는 16진수 문자열입니다. 이 옵션은 구성 파일 또는 환경 변수의 설정을 재정의합니다.
--targetNamespace
문자열
거짓
생성된 Kubernetes 엔터티에 사용할 네임스페이스
이름
유형
필수 사항
설명
-P, --profile
문자열
거짓
# Export Project, DatabaseUsers, Deployments resources for a specific project without connection and integration secrets:
atlas kubernetes config generate --projectId=<projectId>
# Export Project, DatabaseUsers, Deployments resources for a specific project including connection and integration secrets:
atlas kubernetes config generate --projectId=<projectId> --includeSecrets
# Export Project, DatabaseUsers, Deployments resources for a specific project including connection and integration secrets to a specific namespace:
atlas kubernetes config generate --projectId=<projectId> --includeSecrets --targetNamespace=<namespace>
# Export Project, DatabaseUsers, DataFederations and specific Deployment resources for a specific project including connection and integration secrets to a specific namespace:
atlas kubernetes config generate --projectId=<projectId> --clusterName=<cluster-name-1, cluster-name-2> --includeSecrets --targetNamespace=<namespace>
# Export resources for a specific version of the Atlas Kubernetes Operator:
atlas kubernetes config generate --projectId=<projectId> --targetNamespace=<namespace> --operatorVersion=1.5.1
# Export Project, DatabaseUsers, Clusters and specific DataFederation resources for a specific project to a specific namespace:
atlas kubernetes config generate --projectId=<projectId> --dataFederationName=<data-federation-name-1, data-federation-name-2> --targetNamespace=<namespace>

돌아가기

신청하기

이 페이지의 내용