AI 에이전트의 경우: 문서 인덱스는 https://www.mongodb.com/ko-kr/docs/llms.txt에서 사용할 수 있으며, 모든 페이지의 마크다운 버전은 어떤 URL 경로에 .md를 추가하여 사용할 수 있습니다.
Docs Menu

Atlas에 대한 액세스 구성

Atlas Kubernetes API 에 연결하기 위해 Atlas Kubernetes Operator Atlas Kubernetes Operator 시크릿에서 조직 ID 및 API 키를 읽습니다. 다음 기능을 구성할 수도 있습니다.

To learn more about creating an Atlas account, see Register and Log in to Atlas.

Atlas Kubernetes Operator 구성에 따라 다음 Atlas Kubernetes Operator 시크릿 중 하나를 읽습니다.

범위
위치
설명

글로벌

Atlas Kubernetes Operator 시크릿 <operator-deployment-name>-api-key 이(가) Atlas Kubernetes Operator 설치한 동일한 네임스페이스 에 생성되었습니다.

AtlasProject 사용자 지정 리소스 가 spec.connectionSecretRef.name 를 지정하지 않는 한, Atlas Kubernetes Operator는 이 시크릿 데이터를 사용하여 Atlas 관리 API에 연결합니다.

global Atlas Kubernetes Operator secrets let you use one API key for all the projects in an organization. Any new AtlasProject Custom Resource uses the same API key for reduced overhead.

Atlas Kubernetes Operator 배포서버 의 기본값 이름은 mongodb-atlas-operator입니다. 따라서 시크릿의 이름은 로 지정해야 mongodb-atlas-operator-api-key 합니다.

프로젝트

AtlasProject Custom Resource(사용자 지정 리소스)에서(으)로 spec.connectionSecretRef.name 참조된 Atlas Kubernetes Operator 시크릿입니다.

기본값 으로 Atlas Kubernetes Operator AtlasProject Custom Resource(사용자 지정 리소스)와 동일한 네임스페이스 에 연결 비밀을 유지합니다. 다른 네임스페이스에 시크릿을 저장 하려면 spec.connectionSecretRef.namespace 매개변수를 지정합니다.

Atlas Kubernetes Operator 이 시크릿 데이터를 사용하여 프로젝트 참조하는 모든 AtlasDeployment 사용자 지정 리소스 및 AtlasDatabaseUser 사용자 지정 리소스 에 대해 Atlas 관리 API 에 연결합니다.

spec.connectionSecretRef.name 를 지정하지 않으면 Atlas Kubernetes Operator가 global Atlas Kubernetes Operator 시크릿을 사용합니다.

프로젝트별로 Atlas Kubernetes Operator 시크릿을 사용하면 보다 세분화된 액세스가 가능합니다. 단일 API 키로 단일 Atlas 프로젝트에 액세스할 수도 있습니다.

global 및 project 시크릿 에는 모두 다음 정보가 필요합니다.

Parameter
설명

orgId

조직 을식별하는 데 24사용되는 고유한 자리 16진수 입니다.string Atlas

publicAPIKey

Public part of the API key.

privateAPIKey

Private part of the API key.

Atlas에 대한 Atlas Kubernetes Operator 액세스 권한을 구성하려면 다음의 공개 API 키, 비공개 API 키 및 조직 ID 정보가 필요합니다.

Atlas에 대한 Atlas Kubernetes Operator 액세스 권한을 구성하려면 다음 단계 중 한 가지를 수행하세요.

  • global Atlas Kubernetes Operator 시크릿의 경우 다음 명령을 실행 .

    참고

    global Atlas Kubernetes Operator 시크릿의 이름은 사전 정의된 형식을 준수해야 합니다. Atlas Kubernetes Operator 배포서버 의 기본값 이름은 mongodb-atlas-operator입니다. 따라서 시크릿 의 이름은 mongodb-atlas-operator-api-key로 지정해야 합니다.

    kubectl create secret generic mongodb-atlas-operator-api-key \
    --from-literal="orgId=<the_atlas_organization_id>" \
    --from-literal="publicApiKey=<the_atlas_api_public_key>" \
    --from-literal="privateApiKey=<the_atlas_api_private_key>" \
    -n <operator_namespace>
    kubectl label secret mongodb-atlas-operator-api-key atlas.mongodb.com/type=credentials -n mongodb-atlas-system
  • project Atlas Kubernetes Operator 시크릿의 경우 다음 명령을 실행 .

    kubectl create secret generic my-project-connection \
    --from-literal="orgId=<the_atlas_organization_id>" \
    --from-literal="publicApiKey=<the_atlas_api_public_key>" \
    --from-literal="privateApiKey=<the_atlas_api_private_key>" \
    -n <atlas_project_namespace>
    kubectl label secret mongodb-atlas-operator-api-key atlas.mongodb.com/type=credentials -n mongodb-atlas-system