AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの 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 構成、クラウドプロバイダーなど、独自のネットワーク設定に完全に依存します。このため、具体的なユニバーサルガイダンスは利用できません。このページの残りの部分では、 Kubernetes Operator が自動的にチェックする内容、チェックしない内容、およびKubernetesポッドを仮想マシンに公開するために使用する構成について説明します。

ドライバーを使用した接続検証ジョブは、 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.

接続が両方向で正しく構成されていることを保証するコマンドは 1 つだけではありません。このチェックリストを使用して設定を確認し、各アイテムを独自のネットワークに調整します。

  • 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.