フレキシブルなクラスターへの移行
重要
フレキシブルなクラスターへの移行
Atlas は、すべての
M2クラスターとM5クラスターを Flex クラスターに移行しました。サーバーレスインスタンスの場合、Atlas は使用状況に応じて インスタンスを 無料クラスター、 Flex クラスター、または 専有クラスターに移行しました。Atlas がインスタンスをどの階層に移行したかを確認するには、Atlas UIのすべてのクラスターページを参照してください。詳細については、Atlas ドキュメントのFlex 移行 ガイドを参照してください。Replace references to
spec.serverlessSpecwith configuration forspec.flexSpec.Atlas Kubernetes Operator rejects new
AtlasDeploymentcustom resources that definespec.serverlessSpec. You can only usespec.serverlessSpecto manage existing Serverless instances.
Atlas Kubernetes演算子 2.0 による重大な変更
重要
Atlas Kubernetes Operator 2.0 による変更の重大な変更に必要なアクション
Atlas Kubernetes Operator 2.0 では、
deploymentSpecはAtlasDeploymentカスタム リソース内のadvancedDeploymentSpecを置き換えます。AtlasDeploymentカスタム リソースは次のように更新する必要があります。advancedDeploymentSpecを使用する場合は、名前をdeploymentSpecに変更します。 形式を変更する必要はありません。Atlas Kubernetes Operator 2.0より前に
deploymentSpecを使用していた場合は、例に使用されている形式と一致するようにAtlasDeploymentカスタム リソースを書き換えます。
Atlas Kubernetes Operator は、カスタム リソース構成ファイルを使用して Atlas 構成を管理します。 Atlas Kubernetes Operator 2.0 以降では、Kubernetes で削除したカスタム リソースは Atlas では削除されなくなりました。 代わりに、Atlas Kubernetes Operator はそれらのリソースの管理を停止します。 たとえば、Kubernetes で
AtlasProjectカスタム リソースを削除すると、Atlas Kubernetes Operator による、Atlas 内の対応するプロジェクトの自動削除が行われなくなるた、意図しないまたは予期しない削除を防げます。 この動作を Atlas Kubernetes Operator 2.0 より前に使用されていたデフォルトに戻す方法などの詳細については、「新しいデフォルト: Atlas Kubernetes Operator 2.0 の削除保護 」を参照してください。
AtlasDeployment カスタム リソースについて
AtlasDeployment カスタムリソースは、 Atlas のMongoDBクラスターまたは Flex クラスターを構成します。 AtlasDeployment カスタムリソースを作成すると、Atlas Kubernetes Operator は Atlas 内の クラスターまたは Flex クラスターを作成または更新しようとします。
Atlas Kubernetes Operator は、 AtlasDeploymentカスタム リソースで指定した値に応じて、次のいずれかのアクションを実行します。
If you specify values for fields under
spec.deploymentSpec, Atlas Kubernetes Operator uses the Atlas Clusters API Resource to create a new cluster or update an existing cluster.If you specify values for fields under
spec.flexSpec, Atlas Kubernetes Operator uses the Atlas Flex Instance API Resource to create a new Flex cluster or update an existing Flex cluster.
注意
Don't specify values for fields under spec.serverlessSpec because Serverless instances are deprecated. Instead, specify fields under spec.flexSpec. To learn more, see Migration to Flex Clusters.
無料のクラスターの作成は 15 秒未満で完了します。
Flex クラスターまたは専有クラスターの作成または更新には最大 10 分かかる場合があります。Atlas Kubernetes Operator は更新プロセスをモニターします。
次のコマンドを実行して、ステータスを確認できます。
kubectl get atlasdeployment -o yaml
以下の例は、プロビジョニング中のクラスターのステータス セクションを示しています。
status: conditions: - lastTransitionTime: "2024-03-18T16:32:43Z" status: "False" type: ClusterReady reason: ClusterCreating message: Cluster is provisioning
クラスターまたはサーバーレスインスタンスが準備完了すると、ClusterReady のステータスは True に変わります。
例
ステータスの例
次の例では、 ClusterReadyステータスがTrueであるAtlasDeploymentリソースを示しています。
apiVersion: atlas.mongodb.com/v1 kind: AtlasDeployment metadata: name: my-atlas-cluster namespace: mongodb-atlas-system spec: projectRef: name: my-project deploymentSpec: name: test-cluster tags: - key: "environment" value: "production" replicationSpecs: - zoneName: US-Zone numShards: 3 regionConfigs: - regionName: CENTRAL_US providerName: GCP backingProviderName: GCP priority: 7 electableSpecs: instanceSize: M10 nodeCount: 3 status: conditions: - lastTransitionTime: "2024-03-18T16:32:43Z" status: "True" type: Ready - lastTransitionTime: "2024-03-18T16:32:43Z" status: "True" type: ClusterReady connectionStrings: standard: mongodb://test-cluster-shard-00-00.kpc8f.mongodb.net:27017,test-cluster-shard-00-01.kpc8f.mongodb.net:27017,test-cluster-shard-00-02.kpc8f.mongodb.net:27017/?ssl=true&authSource=admin&replicaSet=atlas-1gm1pv-shard-0 standardSrv: mongodb+srv://test-cluster.kpc8f.mongodb.net mongoDBVersion: 6.0 mongoURIUpdated: "2024-03-12T12:21:41Z" observedGeneration: 1 stateName: IDLE
構成例
次の例では、オートスケーリング マルチリージョン クラスター用に構成されたAtlasDeploymentカスタム リソース仕様を示しています。
apiVersion: atlas.mongodb.com/v1 kind: AtlasDeployment metadata: name: test-cluster-name namespace: mongodb-atlas-system spec: projectRef: name: development deploymentSpec: clusterType: REPLICASET name: service-name tags: - key: "environment" value: "production" backupEnabled: true replicationSpecs: - numShards: 1 regionConfigs: - regionName: EASTERN_US providerName: GCP autoScaling: diskGB: enabled: true compute: enabled: true scaleDownEnabled: true minInstanceSize: M30 maxInstanceSize: M40 analyticsSpecs: instanceSize: M30 nodeCount: 1 electableSpecs: instanceSize: M30 nodeCount: 3 priority: 7 readOnlySpecs: instanceSize: M30 nodeCount: 1
追加オプションの例
次の例では、追加オプションの一部を使用して構成されたAtlasDeploymentカスタム リソース仕様を示しています。
apiVersion: atlas.mongodb.com/v1 kind: AtlasDeployment metadata: name: my-atlas-cluster spec: projectRef: name: my-project deploymentSpec: name: test-cluster tags: - key: "environment" value: "production" replicationSpecs: - zoneName: Zone 1 regionConfigs: - electableSpecs: instanceSize: M10 nodeCount: 3 providerName: AWS regionName: US_EAST_1 priority: 7 processArgs: javascriptEnabled: false
フレキシブルなクラスターの例
フレキシブルなクラスターへの移行に関するメモ
2026 まで下位互換性を一定期間維持するため、Atlas では Atlas Kubernetes Operator を使用している場合を含め、サーバーレスインスタンスと Flex クラスター API の両方で移行されたクラスターを管理できます。
You can create and manage Flex clusters in the same AtlasDeployment in which you created and managed Serverless instances and
M2andM5clusters.Atlas では新しい
M2/M5クラスターとサーバーレスインスタンスを作成できません。そのような操作を試みると、代わりに Flex クラスターが作成されます。既存のサーバーレス インスタンスは 2 月 2025 日ドキュメントで非推奨になっていますが、Atlas Kubernetes Operator では既存のサーバーレスインスタンスを引き続き使用できます。
For your existing Serverless instances, you can choose to replace references to
spec.serverlessSpecin the AtlasDeployment with the configuration forspec.flexSpec. Or, you can continue using the same spec. Managing a deployment via thespec.serverlessSpecin theAtlasDeploymentCustom Resource will continue to work even once Atlas automatically migrates these existing clusters to Flex clusters in March 2025.For your existing
M2andM5clusters, you can choose to replace references tospec.deploymentSpecin theAtlasDeploymentCustom Resource with the configuration forspec.flexSpec. Or, you can continue using the same spec. Managing a deployment via thespec.deploymentSpecin theAtlasDeploymentCustom Resource will continue to work even after Atlas automatically migrated these existingM2andM5clusters to Flex clusters in May 2025.既存のサーバーレスインスタンスで、調整中にプライベートエンドポイントに関連するエラーが発生した場合は、Atlas Kubernetes Operator 2.7.1 にアップグレードするか、
AtlasDeploymentカスタムリソースでserverlessSpec構成をflexSpecの構成に置き換える必要があります。M2クラスターとM5クラスターで、自動移行後に発生する可能性のある調整エラーを回避するには、CRD 構成を次の変更してください。Remove the
spec.deploymentSpec.replicationSpecs.zoneNamesetting.Remove any of the
spec.deploymentSpec.replicationSpecs.regionConfigssettings after the first set of settings.Specify
replicasetonly in thespec.deploymentSpec.clusterType.
Alternatively, replace references to
spec.deploymentSpecin the AtlasDeployment with the configuration forspec.flexSpec.年 1 月2026 日までに、残りのすべての
M2/M5およびサーバーレスインスタンスの構成を Atlas Kubernetes Operator カスタム2026 リソースから削除する必要があります。これは、古い API が削除され、 API のみが API の下位互換性を終了するためです。 Flex クラスターに関連するものはその場で維持されます。Atlas Kubernetes Operator の新しいリリースでは、既存の
M2/M5クラスターとサーバーレスインスタンスのサポートが終了します。Atlas Kubernetes Operator の古いバージョンでは、2026 年 1 月までこれらのインスタンスタイプを引き続きサポートします。
詳細については、このガイドの「 Flex クラスターへの移行 」および Atlas ドキュメントの「 Flex 移行ガイド 」を参照してください。
次の例では、 Flex クラスター用に構成された AtlasDeployment カスタムリソース仕様を示しています。
apiVersion: atlas.mongodb.com/v1 kind: AtlasDeployment metadata: name: test-cluster-name namespace: mongodb-atlas-system spec: projectRef: name: my-project flexSpec: name: flex-cluster tags: - key: "environment" value: "production" providerSettings: backingProviderName: AWS regionName: US_EAST_1
サーバーレスインスタンスの例
注意
Don't specify values for fields under spec.serverlessSpec because Serverless instances are deprecated. Instead, specify fields under spec.flexSpec. To learn more, see Migration to Flex Clusters.
次の例では、サーバーレスインスタンスに構成された AtlasDeployment カスタムリソース仕様を示しています。
apiVersion: atlas.mongodb.com/v1 kind: AtlasDeployment metadata: name: test-cluster-name namespace: mongodb-atlas-system spec: projectRef: name: development serverlessSpec: name: serverless-instance tags: - key: "environment" value: "production" providerSettings: providerName: AWS regionName: US_EAST_1
マルチリージョンクラスターの例
Clusters can span regions and cloud service providers. To learn more, see Considerations.
注意
While the Atlas Cluster API Resource sends requests using the v1.5 Atlas API versions, the Atlas Kubernetes Operator apiVersion field uses v1. In this case, v1 refers to the version of the Kubernetes API.
次の例では、マルチリージョンクラスター用に構成されたAtlasDeploymentカスタム リソース仕様を示しています。
apiVersion: atlas.mongodb.com/v1 kind: AtlasDeployment metadata: name: my-atlas-cluster spec: projectRef: name: my-project deploymentSpec: clusterType: REPLICASET name: tenantCluster tags: - key: "environment" value: "production" replicationSpecs: - zoneName: Zone 1 regionConfigs: priority: 7 - electableSpecs: instanceSize: M10 nodeCount: 3 providerName: AWS regionName: US_EAST_1
複数のクラウド サービス プロバイダーの例
次の例では、複数のクラウド サービス プロバイダーにまたがるように構成されたAtlasDeploymentカスタム リソース仕様を示しています。
apiVersion: atlas.mongodb.com/v1 kind: AtlasDeployment metadata: name: my-atlas-cluster spec: projectRef: name: my-project deploymentSpec: clusterType: REPLICASET name: tenantCluster tags: - key: "environment" value: "production" replicationSpecs: - regionConfigs: - electableSpecs: instanceSize: M10 nodeCount: 3 providerName: AWS regionName: US_EAST_1 priority: 7 - electableSpecs: instanceSize: M10 nodeCount: 2 providerName: AZURE regionName: US_EAST_2 priority: 6 - electableSpecs: instanceSize: M10 nodeCount: 2 providerName: GCP regionName: CENTRAL_US priority: 5
検索インデックスの例
次の例では、コレクションlistingsAndReviewsとgradesの検索インデックスを作成するように構成されたAtlasDeploymentカスタム リソース仕様を示しています。
apiVersion: atlas.mongodb.com/v1 kind: AtlasDeployment metadata: name: my-atlas-cluster namespace: mongodb-atlas-system spec: deploymentSpec: backupEnabled: true clusterType: REPLICASET name: Test-cluster-M10 replicationSpecs: - regionConfigs: - backingProviderName: AWS electableSpecs: instanceSize: M10 nodeCount: 3 priority: 7 providerName: AWS regionName: US_EAST_1 zoneName: Zone 1 searchIndexes: - DBName: sample_training collectionName: grades name: test-vector-search-index type: vectorSearch vectorSearch: fields: - numDimensions: 1000 path: student_id similarity: euclidean type: vector - DBName: sample_airbnb collectionName: listingsAndReviews name: my-index search: mappings: dynamic: true searchConfigurationRef: name: atlassearchindexconfig-sample namespace: mongodb-atlas-system type: search terminationProtectionEnabled: false projectRef: name: my-project namespace: mongodb-atlas-system
検索ノードの例
次の例は、検索ノードを作成するために構成されたAtlasDeploymentカスタム リソース仕様を示しています。
apiVersion: atlas.mongodb.com/v1 kind: AtlasDeployment metadata: name: my-atlas-cluster namespace: mongodb-atlas-system spec: deploymentSpec: backupEnabled: true clusterType: REPLICASET name: Test-cluster-M10 replicationSpecs: - regionConfigs: - backingProviderName: AWS electableSpecs: instanceSize: M10 nodeCount: 3 priority: 7 providerName: AWS regionName: US_EAST_1 zoneName: Zone 1 searchNodes: - instanceSize: S20_HIGHCPU_NVME nodeCount: 2
パラメーター
このセクションでは、使用可能な主要なAtlasDeploymentカスタム リソース パラメータの一部について説明します。
For a full list of available parameters for clusters, see the Atlas Clusters API.
Flex クラスターで使用可能なパラメーターの完全なリストについては、 Atlas Flex Clusters APIを参照してください。
変更に関する詳細な情報については、「 フレキシブルなクラスターへの移行に関するノート 」を参照してください。
仕様をカスタマイズするには、これらの説明、利用可能な例、およびAPIドキュメントを参照してください。
spec.backupRef型: オブジェクト
任意
適用する
AtlasBackupScheduleカスタム リソースの詳細を含むリスト。 クラスターごとに 1 つのバックアップ スケジュールを指定できます。
spec.backupRef.name型: string
任意
metadata.name適用するバックアップ スケジュールのAtlasBackupScheduleカスタム リソース内の値。 クラスターごとに指定できるバックアップ スケジュールは 1 つだけですが、複数のクラスターで同じバックアップ スケジュールを使用できます。このパラメーターを省略すると、Atlas はこのクラスターにバックアップ構成を適用しません。
spec.backupRef.namespace型: string
任意
適用するバックアップ スケジュールの
AtlasBackupScheduleカスタム リソースを含む名前空間を示す string。
spec.configServerManagementMode型: string
任意
デフォルト:
ATLAS_MANAGEDシャーディングされたクラスターを作成または更新するための サーバー管理モード を定義する構成。可能な値は次のとおりです。
ATLAS_MANAGED: Atlas は、最適なパフォーマンスと節約のためにクラスターのコンフィギュレーションサーバーのタイプを自動的に切り替える場合があります。FIXED_TO_DEDICATED: クラスターは常に専用のコンフィギュレーションサーバーを使用します。
Learn more about MongoDB Sharded Cluster Config Servers.
spec.connectionSecret.name型: string
条件付き
Atlas Kubernetes Operator が Atlas に接続するために使用する組織IDとAPIキーを含む opaque secret の名前。指定されていない場合、Atlas Kubernetes Operator は次のいずれかにフォールバックします。
親
atlasProjectのspec.connectionSecretRef.nameパラメータデフォルトの
globalシークレット(親atlasProjectに対してspec.connectionSecretRef.nameが未定義の場合)
このパラメータは独立した CRD に必須です。
spec.deploymentSpecタイプ: 配列
条件付き
List that contains the cluster parameters from the API. For a full list of available parameters, see the Atlas Clusters API.
重要
You must specify
spec.deploymentSpecorspec.flexSpecin your configuration.変更に関する詳細な情報については、「 フレキシブルなクラスターへの移行に関するノート 」を参照してください。
spec.deploymentSpec.name型: string
条件付き
クラスターの名前を識別する string。 名前には文字、数字、ダッシュのみを含める必要があり、配置の作成後に変更することはできません。
spec.deploymentSpec.clusterType型: string
条件付き
作成するクラスターのタイプを識別する、人間が判読可能なラベル。
このパラメーターをいつ使用するか?
条件必要性必須
You are deploying Global Clusters.
必須
非グローバルのレプリカセットとシャーディングされたクラスターを配置している。
任意
Atlas では以下に対応しています。
値クラスター タイプレプリカセット
レプリカセット
シャード
シャーディングされたクラスター
GEOSHARDED
spec.deploymentSpec.customZoneMappingタイプ: 配列
必須
ゾーンを地理的リージョンにマッピングするグローバルクラスターパラメーターが格納されたリスト。 使用可能なパラメーターの完全なリストについては、 Atlas Global Clusters API を参照してください。
spec.deploymentSpec.customZoneMapping.location型: string
必須
Code that represents a location that maps to a zone in your Global Cluster.
spec.deploymentSpec.customZoneMapping.zone型: string
必須
Human-readable label that identifies the zone in your Global Cluster.
spec.deploymentSpec.diskSizeGBタイプ: 数値
任意
ホストのルート ボリュームを示す容量(ギガバイト単位)。 この数を増やして、最大値
4096(4 TB)まで容量を追加します。 この値には正の数を指定する必要があります。この値は、ローカル NVMe SSD を持つクラスターでは設定できません。
注意
If you enable auto-scaling for
diskGBin any region, you can't edit this option. To learn more, seespec.deploymentSpec.replicationSpecs.regionConfigs.autoScaling.diskGB.enabled.専有クラスターの最小ディスクサイズは、Amazon Web Services と Google Cloud Platform の場合 10 GB です。最小ディスク サイズ値より小さいディスク サイズでこの設定を指定する場合、Atlas はデフォルトで最小ディスク サイズ値になります。
データベース配置に Azure ノードが含まれている場合、この値は、既存の Azure ディスク タイプ (8、16、32、64、128、256、512、1024、2048、または 4096)に対応する必要があります。
Atlas は、デフォルト値を選択するかカスタム値を選択するかに応じて、ストレージ料金の計算方法が異なります。
Atlas has disk capacity limits on single replica sets, scaling up to 4 TB for higher cluster tiers. To expand the total cluster storage beyond default limits, you can enable extended storage in the Project Settings. To accommodate further scaling in the future, we recommend that you enable sharding for long-term expansion.
データベース配置が複数のクラウド サービス プロバイダーにまたがる場合、この値は関係するプロバイダーの最小デフォルトになります。
To learn more, see Storage Capacity.
spec.deploymentSpec.encryptionAtRestProvider型: string
任意
このクラスターのカスタマー キーを管理するクラウド サービス プロバイダー。 このクラスターのカスタマー マネージド キーを使用して保管時の暗号化を有効にするには、この値を設定する必要があります。これにより、暗号化の追加レイヤーが提供されます。 詳細については、「 KMSを使用したデータの暗号化 」を参照してください。
Atlas は次の値を受け入れます。
値クラウドプロバイダーAmazon Web Services
Amazon Amazon Web Services
GCP
Google Cloud
Azure
Microsoft Azure
なし
プロバイダーなし。クラスターは、カスタマー マネージド キーを使用してデータを暗号化 しません 。
spec.deploymentSpec.managedNamespacesタイプ: 配列
必須
List that contains information to create a managed namespace in a specified Global Cluster to create. For a full list of available parameters, see the Atlas Global Clusters API.
spec.deploymentSpec.managedNamespaces.isCustomShardKeyHashedタイプ: ブール値
任意
指定されたコレクションのカスタム シャードキーをハッシュするかどうかを示すフラグ。 このパラメータのデフォルトは
falseです。コレクションのカスタム シャードキーを有効にするには、 を
trueに設定します。Set to
falseto disable a custom shard key for the collection. If diabled, MongoDB uses ranged sharding.
To learn more, see Hashed Shard Keys.
spec.deploymentSpec.managedNamespaces.isCustomShardKeyUniqueタイプ: ブール値
任意
指定されたコレクションのカスタム シャードキーが一意であるかどうかを示すフラグ。 このパラメータのデフォルトは
falseです。コレクションの一意のカスタム シャードキーを有効にするには、 を
trueに設定します。コレクションの一意のカスタム シャードキーを無効にするには、 を
falseに設定します。
spec.deploymentSpec.managedNamespaces.numInitialChunksタイプ: 整数
任意
Minimum number of chunks to initially create when sharding an empty collection with a hashed shard key.
詳細については、「グローバル コレクションのシャーディング 」を参照してください。
spec.deploymentSpec.managedNamespaces.presplitHashedZonesタイプ: ブール値
任意
MongoDB Cloud が、空のコレクションや存在しないコレクションの初期チャンクを作成して配布するかどうかを示すフラグ。 このパラメータのデフォルトは
falseです。MongoDB Cloud が空のコレクションまたは存在しないコレクションの初期チャンクを作成して配布するには、
trueに設定します。MongoDB Cloud が空のコレクションや存在しないコレクションの初期チャンクを作成して配布しないようにするには、
falseに設定します。
spec.deploymentSpec.mongoDBMajorVersion型: string
任意
配置するクラスターのバージョン。 Atlas は、
M10+クラスターに対して次の MongoDB バージョンをサポートしています。5.0
6.0
7.0
8.0
次の条件では、次の結果が得られます。
条件結果You omit this parameter and you omit the
spec.deploymentSpec.versionReleaseSystemparameter.Atlas は MongoDB 7.0 を実行するクラスターをデプロイします。
You omit this parameter and you set the
spec.deploymentSpec.versionReleaseSystemparameter toLTS.Atlas は MongoDB 7.0 を実行するクラスターをデプロイします。
Atlas deprecated
M2andM5clusters and Serverless instances. To learn more, see Migration to Flex Clusters. Set thespec.deploymentSpec.replicationSpecs.regionConfigs.electableSpecs.instanceSizeparameter toM0,M2, orM5.MongoDB 7.0 以降を配置する必要があります。
このパラメーターを指定します。
Atlas は、指定されたバージョンの最新の安定したパッチ リリースを使用してクラスターを常にデプロイします。
You set the
spec.deploymentSpec.versionReleaseSystemparameter toCONTINUOUS.このパラメーターは省略する必要があります。
spec.deploymentSpec.pitEnabledタイプ: ブール値
条件付き
注意
Atlas は
M2およびM5クラスターとサーバーレス インスタンスを非推奨にしました。Atlas は、すべてのM2クラスターとM5クラスターを Flex クラスターに移行しました。サーバーレスインスタンスの場合、Atlas は使用状況に応じて インスタンスを 無料クラスター、 Flex クラスター、または 専有クラスターに移行しました。API の下位互換性を一定期間維持するため、Atlas では、Atlas Kubernetes Operator を使用する場合を含め、これらの移行クラスターを同じ API(古い API と新しい API)で管理できるようにします。 API の下位互換性は、古い2026 API が削除され、Flex クラスターに関連する API のみが残ります。
サーバーレスインスタンス上のプライベートエンドポイントのサポートは 3 月 2025 日で終了しました。2025 までにプライベートエンドポイントを除くために、Atlas Kubernetes Operator の構成を更新する必要があります。残りのすべての
M2、M5、およびサーバーレスインスタンス機能を Atlas Kubernetes Operator 構成から 2026 年 1 月前に除く必要があります。If your workloads require Private Endpoints or Continuous Backup, switch to Atlas Dedicated Clusters. To learn more, see Migration to Flex Clusters and the Atlas Flex Migration Guide.
継続的なクラウドバックアップを可能にする構成。 継続的なクラウドバックアップを有効にするには、この設定に
trueを指定する必要があります。
spec.deploymentSpec.replicationSpecsタイプ: オブジェクトの配列
条件付き
List that contains the configurations for your cluster regions. Use this parameter for multi-region clusters. You must set either
spec.deploymentSpec.replicationSpecs.regionConfigs.regionNameorspec.deploymentSpec.replicationSpecs.このパラメーターをいつ使用するか?
条件必要性ValuesYou are deploying Global Clusters.
必須
配列内の各オブジェクトは、Atlas がクラスターのノードを配置するゾーンを表します。
非グローバルのレプリカセットとシャーディングされたクラスターを配置している。
任意
この配列には、Atlas がクラスターのノードを配置する場所を表す 1 つのオブジェクトが含まれています。
If you specify this parameter, you must also specify
spec.deploymentSpec.clusterTypeandspec.deploymentSpec.replicationSpecs.numShards.
spec.deploymentSpec.replicationSpecs.numShardsタイプ: 整数
条件付き
シャーディングされたクラスターに配置するシャードの数を指定する正の整数。
If you use the
spec.deploymentSpec.replicationSpecsparameter, you must set this parameter.Atlas は
1から50までを受け入れます。 デフォルト値は1です。If you specify a value of
1and you setspec.deploymentSpec.clusterTypetoSHARDED, Atlas deploys a single-shard sharded cluster.If you specify
1and you setspec.deploymentSpec.clusterTypetoREPLICASET, Atlas deploys a replica set.実稼働環境では、単一のシャードを含むシャーディングされたクラスターを作成しないでください。単一シャードのシャード クラスターでは、マルチシャード構成と同じ利点は得られません。
警告
When you use a sharded cluster, MongoDB requires that your applications connect to a
mongosinstance to ensure that your applications interact with the shards and other components of the sharded cluster properly. If you migrate from a replica set to a sharded cluster, your applications must restart to enable the connection to the cluster'smongos. As a result, the Atlas Admin API prevents you from migrating a replica set directly to a sharded cluster with more than one shard. After you successfully migrate your replica set to a single shard cluster and reset your application connections, you can add additional shards to the cluster.
spec.deploymentSpec.replicationSpecs.regionConfigsタイプ: 配列
必須
特定のリージョンに設定されたノードのハードウェア仕様。 各
regionConfigsオブジェクトは、選挙におけるリージョンの優先順位と、Atlas がリージョンに配置する MongoDB ノードの数とタイプを表します。各
regionConfigsオブジェクトには、analyticsSpecsオブジェクト、electableSpecsオブジェクト、またはreadOnlySpecsオブジェクトのいずれかが必要です。M0、M2、またはM5クラスターではelectableSpecsのみが必要です。専有クラスターはこれらの仕様のいずれかを指定できますが、
replicationSpec内に少なくとも 1 つのelectableSpecsオブジェクトが必要です。すべてのハードウェア仕様で同じ
instanceSizeを使用する必要があります。
spec.deploymentSpec.replicationSpecs.regionConfigs.analyticsSpecs型: オブジェクト
任意
リージョンで必要とされる分析ノードのハードウェア仕様。 分析ノードは、BI Connector for Atlas からのクエリのレポートなどの分析データを処理します。 分析ノードは読み取り専用であり、プライマリになることはできません。
このパラメーターを指定しない場合、Atlas はこのリージョンに分析を配置しません。
spec.deploymentSpec.replicationSpecs.regionConfigs.autoScaling.diskGB.enabledタイプ: ブール値
任意
このデータベース配置でディスクのオートスケーリングが有効になっているかどうかを示すフラグ。 このパラメータのデフォルトは
trueです。ディスクのオートスケーリングを有効にするには、
trueに設定します。ディスクのオートスケーリングを無効にするには、
falseに設定します。
The maximum amount of RAM for the selected cluster tier and the oplog size can limit storage auto-scaling. To learn more, see Customize Your Storage.
spec.deploymentSpec.replicationSpecs.regionConfigs.autoScaling.compute.enabledタイプ: ブール値
任意
インスタンス サイズのオートスケーリングが有効になっているかどうかを示すフラグ。 このパラメータのデフォルトは
falseです。Set to
trueto enable instance size auto-caling. If enabled, you must specify a value forspec.deploymentSpec.replicationSpecs.regionConfigs.autoScaling.compute.maxInstanceSize.インスタンス サイズのオートスケーリングを無効にするには、 を
falseに設定します。
spec.deploymentSpec.replicationSpecs.regionConfigs.autoScaling.compute.maxInstanceSize型: string
条件付き
String that indicates the maximum instance size to which your database deployment can automatically scale (such as
M40). You must specify this parameter if you setspec.deploymentSpec.replicationSpecs.regionConfigs.autoScaling.compute.enabledtotrue.注意
オートスケーリングを有効にして、データベース配置の現在のインスタンスサイズよりも小さい最大インスタンスサイズを設定すると、Atlas は現在のインスタンスサイズを指定された最大値に自動的にスケーリングします。
たとえば、データベース配置の現在のインスタンス サイズが
M40で、最大インスタンス サイズをM30に設定すると、Atlas は現在のインスタンス サイズをM30に自動的にスケーリングします。If Atlas changes the current instance size and you don't change the
spec.deploymentSpec.replicationSpecs.regionConfigs.electableSpecs.instanceSizein Atlas Kubernetes Operator to match the new instance size, Atlas Kubernetes Operator displays a warning in the logs but doesn't prevent auto-scaling.
spec.deploymentSpec.replicationSpecs.regionConfigs.autoScaling.compute.minInstanceSize型: string
条件付き
String that indicates the minimum instance size to which your database deployment can automatically scale (such as
M10). You must specify this parameter if you setspec.deploymentSpec.replicationSpecs.regionConfigs.autoScaling.compute.enabledtotrue.注意
オートスケーリングを有効にして、データベース配置の現在のインスタンスサイズよりも大きい最小インスタンスサイズを設定すると、Atlas は現在のインスタンスサイズを指定された最小値に自動的にスケーリングします。
たとえば、データベース配置の現在のインスタンス サイズが
M10で、最小インスタンス サイズをM30に設定すると、Atlas は現在のインスタンス サイズをM30に自動的にスケーリングします。If Atlas changes the current instance size and you don't change the
spec.deploymentSpec.replicationSpecs.regionConfigs.electableSpecs.instanceSizein Atlas Kubernetes Operator to match the new instance size, Atlas Kubernetes Operator displays a warning in the logs but doesn't prevent auto-scaling.
spec.deploymentSpec.replicationSpecs.regionConfigs.electableSpecs型: オブジェクト
任意
リージョン内の選択可能なノードのハードウェア仕様。 選挙可能なノードはプライマリになることができ、ローカル読み取りを有効にできます。
このオプションを指定しない場合、Atlas は選択可能なノードを リージョンに配置しません。
spec.deploymentSpec.replicationSpecs.regionConfigs.electableSpecs.instanceSize型: string
条件付き
このリージョンのインスタンス サイズのハードウェア仕様。 各インスタンス サイズには、デフォルトのストレージとメモリ容量が設定されています。 選択したインスタンス サイズは、インスタンス サイズ内のすべてのデータを保持するホストに適用されます。 詳しくは、「 Amazon Web Services 」、「 GCP 」、およびAzureのカスタム ストレージ サイズを参照してください。
If you deploy a sharded cluster, or global cluster, you must choose an instance size of
M30or greater.If you change the instance size name after you deploy your cluster, Atlas changes the database deployment to the instance size you specify unless it falls outside the range you specify in
spec.deploymentSpec.replicationSpecs.regionConfigs.autoScaling.compute.minInstanceSizeandspec.deploymentSpec.replicationSpecs.regionConfigs.autoScaling.compute.maxInstanceSizewith auto-scaling enabled. To learn more, seespec.deploymentSpec.replicationSpecs.regionConfigs.autoScaling.compute.minInstanceSizeandspec.deploymentSpec.replicationSpecs.regionConfigs.autoScaling.compute.maxInstanceSize.注意
If you have auto-scaling enabled for the compute field, you can't edit this option. To learn more, see
spec.deploymentSpec.replicationSpecs.regionConfigs.autoScaling.compute.enabled.注意
この設定を変更して、
M0または Flex クラスターをM10+クラスターにアップグレードできます。ただし、この設定を使用して、M0または Flex クラスターを別の無料または Flex クラスターにアップグレードすることはできません
spec.deploymentSpec.replicationSpecs.regionConfigs.electableSpecs.nodeCountタイプ: 整数
条件付き
Atlas が リージョンに配置する選択可能なノードの数。 選挙可能なノードはプライマリになることができ、ローカル読み取りを有効にできます。
すべての
replicationSpecs.regionConfigsオブジェクトにわたるelectableSpecs.nodeCountの合計は、3、5、または7の合計が必要です。You can't create electable nodes if
spec.deploymentSpec.replicationSpecs.regionConfigs.priorityis0.
spec.deploymentSpec.replicationSpecs.regionConfigs.priorityタイプ: 整数
必須
予備選挙が行われると、このリージョンに優先順位が与えられます。
regionConfigsにreadOnlySpecs、analyticsSpecs、またはその両方がある場合は、この値を0に設定します。複数の
regionConfigsオブジェクト(クラスターがマルチリージョンまたはマルチクラウド)がある場合、それらの優先順位は降順である必要があります。 最も優先順位は7です。例
最も優先度の高いリージョンを
7に、2 番目に優先度の高いリージョンを6に、3 番目の優先度のリージョンを5に設定します。 選択可能なノードがない場合は、この値を0に設定します。お使いのリージョンで
electableSpecs.nodeCountが1以上に設定されている場合、プライマリでない限り、replicationSpecs.regionConfigs配列内の別のリージョンよりも優先度が 1 つだけ低い必要があります。 最も優先度の高いリージョンの優先度は、7である必要があります。 最低の優先順位は1です。優先度
7リージョンは、クラスターの優先リージョンを識別します。 Atlas は優先リージョンにプライマリ ノードを配置します。 優先順位1から7は排他的です。特定の優先順位をクラスターごとに複数のリージョンに割り当てることはできません。例
3 つのリージョンがある場合、優先順位はそれぞれ
7、6、5になります。 選択可能なノードをサポートするためにさらに 2 つのリージョンを追加した場合、それらのリージョンの優先順位はそれぞれ4と3になります。
spec.deploymentSpec.replicationSpecs.regionConfigs.providerName型: string
条件付き
Atlas がホストをプロビジョニングするクラウド サービス プロバイダー。
Amazon Web Services
Amazon Amazon Web Services
GCP
Google Cloud Platform
Azure
Microsoft Azure
spec.deploymentSpec.replicationSpecs.regionConfigs.regionName型: string
条件付き
MongoDB クラスターの物理的なロケーション。 選択したリージョンは、データベースにアクセスするクライアントのネットワーク レイテンシに影響する可能性があります。
リージョン名の値の完全なリストについては、クラウドプロバイダーのリファレンス ページを参照してください。
For multi-region clusters, see
spec.deploymentSpec.replicationSpecs. You must set eitherspec.deploymentSpec.replicationSpecs.regionConfigs.regionNameorspec.deploymentSpec.replicationSpecs.
spec.deploymentSpec.replicationSpecs.regionConfigs.readOnlySpecs型: オブジェクト
任意
リージョン内の読み取り専用ノードのハードウェア仕様。 読み取り専用ノードは プライマリ ノードになることはできませんが、ローカル読み取りを有効にできます。
このパラメーターを指定しない場合、Atlas は リージョンに読み取り専用ノードを配置しません。
spec.deploymentSpec.replicationSpecs.zoneName型: string
任意
Human-readable label that identifies the zone in a Global Cluster. Provide this value only if you set
spec.deploymentSpec.clusterTypetoGEOSHARDED.
spec.deploymentSpec.searchIndexesタイプ: 配列
任意
検索インデックスを記述するフィールドを持つ
SearchIndexオブジェクトの配列。 各SearchIndexオブジェクトには次のフィールドが含まれています。フィールドタイプ説明namestring
このインデックスを識別する、人間が判読できるラベル。 配置に対して一意である必要があります。
DBNamestring
1 つ以上の Atlas Search インデックスを持つコレクションを含む既存のデータベースを識別する、人間が判読できるラベル。
重要:指定するデータベースはすでに存在している必要があります。 既存のデータベースがない場合は、作成します 。
collectionNamestring
1 つ以上の Atlas Search インデックスを含むコレクションを識別する、人間が判読できるラベル。
typestring
インデックスのタイプ。 Atlas は次の値を受け入れます。
searchvectorSearch
searchオブジェクト
typeがsearchである場合は、このオブジェクトを含める必要があります。 それ以外の場合は、省略します。vectorSearchオブジェクト
typeがvectorSearchである場合は、このオブジェクトを含める必要があります。 それ以外の場合は、省略します。
spec.deploymentSpec.searchIndexes.search型: オブジェクト
任意
フィールドタイプ説明synonyms配列
このインデックス内の単語を同義語にマッピングするルール セット
mappingsオブジェクト
コレクションのフィールドのインデックス仕様
必須
searchConfigurationRefオブジェクト
AtlasSearchIndexConfig カスタム リソースへの名前/名前空間参照(以下で説明)。
必須
spec.deploymentSpec.searchIndexes.search.synonymsタイプ: 配列
任意
このインデックス内の単語を同義語にマッピングするルールセットを記述するフィールドを持つ
Synonymオブジェクトの配列。 各Synonymオブジェクトには次のフィールドが含まれています。フィールドタイプ説明namestring
シノニム(同意語)の定義を識別する、人間が判読可能なラベル。 各名前は同じインデックス定義内で一意である必要があります
必須
analyzerstring
検索するシノニム(同意語)に適用するために選択された特定の定義済みメソッド。 可能な値は次のとおりです。
lucene.standard
lucene.standard
lucene.simple
lucene.whitespace
lucene.keyword
lucene.arabic
lucene.argenian
lucene.basque
lucene. envelope
lucene.brazilian
lucene.bulgarian
lucene.catalan
lucene.chinese
lucene.cjk
lucene.czech
lucene.danish
lucene.dutch
lucene.english
lucene.finnish
lucene.french
lucene.galician
lucene.german
lucene.greek
lucene.hindi
lucene.hungarian
lucene.indonesian
lucene.irish
lucene.italian
lucene.japanese
lucene.korean
lucene.kuromoji
lucene.latvian
lucene.lithuanian
lucene.morfologik
lucene.nori
lucene.norwegian
lucene.persian
lucene.portuguese
lucene.romanian
lucene.russian
lucene.smartcn
lucene.sorani
lucene.spanish
lucene.swedish
lucene.thai
lucene.turkish
lucene.ukrainian
必須
sourceオブジェクト
1 つ以上の単語が、それらの単語の 1 つ以上のシノニム(同意語)にマップされるのを保存するデータセット
必須
spec.deploymentSpec.searchIndexes.search.synonyms.source型: オブジェクト
必須
フィールドタイプ説明collectionstring
単語とそのシノニム(同意語)を保存する MongoDB コレクションを識別する、人間が判読可能なラベル
必須
spec.deploymentSpec.searchIndexes.search.mappings型: オブジェクト
必須
コレクションのフィールドのインデックス仕様を持つオブジェクト:
dynamicブール値インデックスが動的マッピングを使用するか、静的マッピングを使用するかを示すフラグ。 mappings.fields が省略されている場合は必須です。fieldsJSON/YAML
Atlas Search インデックスの 1 つ以上のフィールド仕様。 mappings.dynum が省略されているか、false に設定されている場合は必須です。
spec.deploymentSpec.searchIndexes.vectorSearch型: オブジェクト
任意
フィールドタイプ説明fieldsJSON/YAML
JSONオブジェクトの配列。https://docub.mongodb.org/core/avs-vector-type
必須
spec.deploymentSpec.searchNodesタイプ: 配列
任意
検索ノード構成の配列。 各要素には 2 つのフィールドが含まれています。
フィールドタイプ説明nodeCountinteger
クラスター内の検索ノードの数。 Atlas は2から32までの値を受け入れます。 デフォルトの数値は
2です。instanceSizestring
検索ノード インスタンス サイズのハードウェア仕様。 Atlas は次のいずれかを受け付けます。
S20_HIGHCPU_NVMES30_HIGHCPU_NVMES40_HIGHCPU_NVMES50_HIGHCPU_NVMES60_HIGHCPU_NVMES70_HIGHCPU_NVMES80_HIGHCPU_NVMES30_LOWCPU_NVMES40_LOWCPU_NVMES50_LOWCPU_NVMES60_LOWCPU_NVMES80_LOWCPU_NVMES90_LOWCPU_NVMES100_LOWCPU_NVME
デフォルトのインスタンス サイズは
S20_HIGHCPU_NVMEです。
spec.deploymentSpec.tagsタイプ: 配列
任意
データベース配置をよりよく理解、整理し、識別するためのタグ(キーと値のペア)を含むリスト。 詳細については、「クラスターのタグ 」を参照してください。
spec.deploymentSpec.terminationProtectionEnabledタイプ: ブール値
クラスターの終了保護が有効になっているか無効になっているかを示します。
trueに設定されていると、Atlas はクラスターを削除しません。falseに設定されていると、Atlas はクラスターを削除します。 デフォルトはfalseです。
spec.deploymentSpec.versionReleaseSystem型: string
条件付き
Atlas がこのクラスターに使用するリリース ケイデンス。 Atlas では以下に対応しています。
CONTINUOUS: Atlas は、最新の MongoDB リリースを使用してクラスターを作成します。 Atlas は、MongoDB の最新のメジャー リリースと Rapid Release が利用可能になると、クラスターを自動的に更新します。LTS: Atlas creates your cluster using the latest patch release of the MongoDB version that you specify in thespec.deploymentSpec.mongoDBMajorVersionparameter. Atlas automatically updates your cluster to subsequent patch releases of this MongoDB version. Atlas doesn't update your cluster to newer rapid or major MongoDB releases as they become available.省略した場合、デフォルトは
LTSになります。If you set this parameter to
CONTINUOUS, you must omit thespec.deploymentSpec.mongoDBMajorVersionparameter.
spec.externalProjectRef.id型: string
条件付き
配置が属するプロジェクトのID 。 既存の Atlas プロジェクト のプロジェクトIDを指定する必要があります。このパラメーターは、次のいずれかによって管理されるプロジェクトに属する配置に必要です。
Atlas Kubernetes Operator の別のインスタンス
Atlas Kubernetes Operator 以外のツール
Atlas Kubernetes Operator の同じインスタンスによって管理されるプロジェクトに属する配置では、
spec.externalProjectRef.idを使用しない場合はspec.projectRef.nameを使用します。
spec.flexSpecタイプ: 配列
条件付き
注意
変更に関する詳細な情報については、「 フレキシブルなクラスターへの移行に関するノート 」を参照してください。
List that contains the Flex cluster parameters from the API. For a full list of available parameters, see the Atlas Flex Clusters API.
重要
You must specify
spec.deploymentSpecorspec.flexSpecin your configuration.
spec.flexSpec.tagsタイプ: 配列
任意
データベース配置をよりよく理解、整理し、識別するためのタグ(キーと値のペア)を含むリスト。 詳細については、「クラスターのタグ 」を参照してください。
spec.flexSpec.terminationProtectionEnabledタイプ: ブール値
Flex クラスターの終了保護が有効になっているか無効になっているかを示します。
trueに設定されていると、Atlas はクラスターを削除しません。falseに設定されていると、Atlas はクラスターを削除します。 デフォルトはfalseです。
spec.flexSpec.providerSettings.backingProviderName型: string
Flex クラスターのクラウドプロバイダーの名前。
providerSettingsには、 MongoDB が実行されるプロビジョニングされたホストの 設定を指定する構成が含まれます。Atlas は、次のいずれかの値を受け入れます。
AWSAZUREGCP
spec.flexSpec.providerSettings.regionName型: string
MongoDB Flex クラスターの物理的なロケーション。 選択したリージョンは、データベースにアクセスするクライアントのネットワークレイテンシに影響する可能性があります。
リージョン名の値の完全なリストについては、クラウドプロバイダーのリファレンス ページを参照してください。
spec.processArgs型: オブジェクト
任意
Object that contains the additional configuration options for your cluster.
spec.processArgs.defaultReadConcern型: string
任意
このクラスターの読み取り操作に対して MongoDB から要求される確認応答のデフォルト レベルを示す string。
MongoDB 5.0クラスターのデフォルトはローカルです。
spec.processArgs.defaultWriteConcern型: string
任意
String that indicates the default level of acknowledgment requested from MongoDB for write operations set for this cluster.
MongoDB versions 5.0 and later clusters default to majority.
spec.processArgs.failIndexKeyTooLongタイプ: ブール値
任意
Flag that indicates whether to fail the operation and return an error when you insert or update documents where all indexed entries exceed 1024 bytes. If you set this to
false,mongodwrites documents that exceed this limit, but doesn't index them.This option corresponds to the
param.failIndexKeyTooLongmongodparameter.
spec.processArgs.javascriptEnabledタイプ: ブール値
任意
クラスターが JavaScript のサーバー側実行を実行する操作の実行を許可するかどうかを示すフラグ。
- This option corresponds to modifying the
security.javascriptEnabledconfiguration file option for eachmongodandmongosin the cluster.
spec.processArgs.minimumEnabledTlsProtocolタイプ: 整数
任意
string で、着信接続に対してクラスターが許可する最小 TLS バージョンを示します。TLS1.0 または1.1 1.2を使用するクラスターでは、最小 TLS プロトコル バージョンとして TLS を設定することを検討する必要があります。
詳細については、「 Atlas はどのバージョンの TLS をサポートしていますか 」を参照してください。
This option corresponds to the
net.ssl.disabledProtocolsmongodconfiguration file option.
spec.processArgs.noTableScanタイプ: ブール値
任意
結果を返すためにコレクションスキャンが必要なクエリについて、クラスターで実行が無効化されているかどうかを示すフラグ。
This option corresponds to the
notablescanmongodparameter.
spec.processArgs.oplogSizeMBタイプ: 整数
任意
クラスターの oplog のストレージ制限をメガバイト単位で示す数値。
nullの値は、Atlas が計算するデフォルトの oplog サイズをクラスターが使用することを示します。This option corresponds to the
replication.oplogSizeMBmongodconfiguration file option.
spec.processArgs.sampleRefreshIntervalBIConnectorタイプ: 整数
任意
スキーマ情報の収集時にサンプリングするデータベースあたりのドキュメント数を示す数値。
このパラメーターは、 sampleSize mongosqldオプションに対応します。
spec.processArgs.sampleSizeBIConnectorタイプ: 整数
任意
mongosqld プロセスがデータを再サンプリングしてリレーショナル スキーマを作成する間隔を秒単位で示す数値。
This parameter corresponds to the sampleRefreshIntervalSecs mongosqld option.
spec.projectRef.name型: string
条件付き
配置が属するプロジェクトの名前。 既存の
AtlasProjectカスタム リソース を指定する必要があります。このパラメーターは、同じインスタンスAtlas Kubernetes Operator によって管理されるプロジェクトに属する配置にのみ適用されます。次のいずれかによって管理されるプロジェクトに属する配置の場合、次のいずれかによって管理されます。
Atlas Kubernetes Operator の別のインスタンス
Atlas Kubernetes Operator 以外のツール
spec.externalProjectRef.idを使用します。
spec.serverlessSpecタイプ: 配列
条件付き
注意
変更に関する詳細な情報については、「 フレキシブルなクラスターへの移行に関するノート 」を参照してください。
APIからのサーバーレスインスタンスパラメーターが格納されたリスト。利用可能なパラメーターの完全なリストについては、 Atlas Flex Clusters API を参照してください。
重要
構成で
spec.deploymentSpecまたはspec.flexSpecを指定する必要があります。
spec.upgradeToDedicatedタイプ: ブール値
任意
このフラグで、
trueに設定すると、Flex クラスターから Device 専用クラスターへのインプレース アップグレードがトリガーされます。省略した場合、デフォルトは
falseになります。移行プロセスの詳細なウォークスルーについては、「Flex クラスターを専用クラスターに移行する」を参照してください。重要
また、
spec.deploymentSpecブロックには、ターゲット専有クラスターの完全な構成を指定する必要があります。この操作は一方向であり、元に戻すことができません。
spec.serverlessSpec.privateEndpointsタイプ: 配列
任意
注意
Atlas は
M2およびM5クラスターとサーバーレス インスタンスを非推奨にしました。Atlas は、すべてのM2クラスターとM5クラスターを Flex クラスターに移行しました。サーバーレスインスタンスの場合、Atlas は使用状況に応じて インスタンスを 無料クラスター、 Flex クラスター、または 専有クラスターに移行しました。API の下位互換性を一定期間維持するため、Atlas では、Atlas Kubernetes Operator を使用する場合を含め、これらの移行クラスターを同じ API(古い API と新しい API)で管理できるようにします。 API の下位互換性は、古い2026 API が削除され、Flex クラスターに関連する API のみが残ります。
サーバーレスインスタンス上のプライベートエンドポイントのサポートは 3 月 2025 日で終了しました。2025 までにプライベートエンドポイントを除くために、Atlas Kubernetes Operator の構成を更新する必要があります。残りのすべての
M2、M5、およびサーバーレスインスタンス機能を Atlas Kubernetes Operator 構成から 2026 年 1 月前に除く必要があります。If your workloads require Private Endpoints or Continuous Backup, switch to Atlas Dedicated Clusters. To learn more, see Migration to Flex Clusters and the Atlas Flex Migration Guide.
非推奨。 このパラメーターが存在する場合は削除します。 サーバーレスインスタンスのプライベートエンドポイント構成が格納されたリスト。
spec.serverlessSpec.providerSettings型: オブジェクト
条件付き
注意
変更に関する詳細な情報については、「 フレキシブルなクラスターへの移行に関するノート 」を参照してください。
MongoDB が実行されるプロビジョニングされたホストの 設定を指定する構成。 利用可能なオプションは、クラウドサービス プロバイダーに固有です。 詳しくは、「 Amazon Web Services 」 、 「 GCP 」 、およびAzure Serverlessインスタンスの構成オプションを参照してください。
サーバーレスインスタンスを作成または更新する場合は、この設定を指定する必要があります。
重要
次の設定は非推奨であり、将来のリリースで削除される予定です。
spec.serverlessSpec.providerSettings.DiskIOPSspec.serverlessSpec.providerSettings.DiskTypeNamespec.serverlessSpec.providerSettings.EncryptEBSVolumespec.serverlessSpec.providerSettings.InstanceSizeNamespec.serverlessSpec.providerSettings.VolumeTypespec.serverlessSpec.providerSettings.AutoScaling
これらの設定のいずれかに値を指定しても効果はありません。
spec.serverlessSpec.providerSettings.providerName型: string
条件付き
注意
変更に関する詳細な情報については、「 フレキシブルなクラスターへの移行に関するノート 」を参照してください。
Atlas が サーバーレスインスタンスのホストをプロビジョニングするクラウド サービス プロバイダー。
Atlas は次の値を受け入れます。
Amazon Web Services
Amazon Amazon Web Services
GCP
Google Cloud Platform
Azure
Microsoft Azure
spec.serverlessSpec.providerSettings.regionName型: string
条件付き
注意
変更に関する詳細な情報については、「 フレキシブルなクラスターへの移行に関するノート 」を参照してください。
MongoDBサーバーレスインスタンスの物理的なロケーション。 選択したリージョンは、データベースにアクセスするクライアントのネットワークレイテンシに影響する可能性があります。
リージョン名の値の完全なリストについては、クラウドプロバイダーのリファレンス ページを参照してください。
spec.serverlessSpec.tags注意
変更に関する詳細な情報については、「 フレキシブルなクラスターへの移行に関するノート 」を参照してください。
タイプ: 配列
任意
データベース配置をよりよく理解、整理し、識別するためのタグ(キーと値のペア)を含むリスト。 詳細については、「クラスターのタグ 」を参照してください。
status.connectionStringsタイプ: 配列
必須
クラスターにアクセスするための接続 URL が格納されたリスト。 このパラメーターは、クラスターを作成またはアップデートした後に表示されます。
注意
... include::/includes/fact-ask8so- connection-strings.rst
APIからクラスターで利用可能な構成パラメーターについては、「 Atlas Clusters API 」を参照してください。
注意
次のパラメータは Atlas APIでは非推奨となり、Atlas Kubernetes Operator はそれらをサポートしていません。
replicationSpecreplicationFactor