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

마이그레이션을 위한 네트워크 요구 사항

Migrating a deployment that Ops Manager or Cloud Manager manages on virtual machines into Kubernetes under Kubernetes Operator requires bidirectional network connectivity between the virtual machine hosts and the Kubernetes Pods. You, not Kubernetes Operator, provision this connectivity.

이 연결은 네트워크 토폴로지, 방화벽 규칙, DNS 구성 및 cloud 제공자 포함한 자체 네트워킹 설정 에 따라 완전히 달라집니다. 이 때문에 구체적인 보편적 지침 불가능합니다. 이 페이지의 나머지 부분에서는 Kubernetes Operator가 자동으로 확인하는 항목, 확인하지 않는 항목, 가상 머신에 Kubernetes Pod를 노출하는 데 사용하는 구성에 대해 설명합니다.

테스트 실행 연결 유효성 검사기 작업은 Kubernetes 환경에서 가상 머신 멤버에 연결할 수 있는지 확인합니다. 가상 머신에서 Kubernetes 로의 역방향은 확인하지 않습니다. 이 페이지 뒷부분의 설정에 따른 체크리스트를 사용하여 해당 방향을 직접 확인해야 합니다.

To let virtual machine nodes reach the Kubernetes Pods, use spec.externalAccess. This is the same external-access mechanism that Kubernetes Operator uses outside of migration: it creates a LoadBalancer or NodePort for each Pod, exposing the Pods outside the Kubernetes cluster.

Optionally, set spec.externalAccess.externalDomain to a hostname that the virtual machine nodes can resolve. You own DNS setup for this hostname; Kubernetes Operator does not create or manage DNS records for you.

중요

Don't set externalDomain if you use MongoDB Search or Vector Search with this deployment. MongoDBSearch does not support a MongoDB resource that sets externalDomain. Use spec.externalAccess on its own instead. To learn more, see MongoDB Search Interaction with Migration.

경고

You cannot remove externalDomain after you create the cluster. Confirm your hostname and DNS strategy before you set this field.

Kubernetes member hostnames follow the pattern <metadata.name>-0.<spec.externalAccess.externalDomain>, where the numeric index increments by one for each additional member.

단일 명령은 연결이 양방향으로 올바르게 구성된다고 보장할 수 없습니다. 이 체크리스트를 사용하여 설정 검토 하고 각 항목을 자체 네트워크에 맞게 조정합니다.

  • Kubernetes 멤버의 호스트 이름이 가상 머신 멤버에서 확인할 수 있는지 확인합니다.

  • 가상 머신에서 Kubernetes 노드 또는 LoadBalancer IP 주소에 연결할 수 있는지 확인합니다.

샤딩된 클러스터 의 경우 구성 요소별로 외부 액세스 구성합니다.

  • spec.externalAccess configures mongos only.

  • spec.mongos.externalAccess supersedes the root-level field for mongos.

  • spec.shard.externalAccess and spec.configSrv.externalAccess each must be set to expose every Pod of the shards and the config server replica set.

Kubernetes Operator automatically generates a connection string Secret named <metadata.name>-cluster-connection-string. This Secret contains no credentials, and Kubernetes Operator keeps it in sync with the active nodes as membership changes during migration.

Point your applications at this Secret instead of a hardcoded connection string. Doing so means that membership changes during migration do not require a hard cutover for your applications.

Configure external access and externalDomain before you extend the deployment into Kubernetes. Kubernetes Operator does not support adding these settings after migration is already underway.