AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

Atlas Kubernetesの生成

Atlas Kubernetes Operator で使用する Kubernetes 構成リソースを生成します。

This command exports configurations for Atlas objects including projects, deployments, and users in a Kubernetes-compatible format, allowing you to manage these resources using the Atlas Kubernetes Operator. For more information, see https://www.mongodb.com/ja-jp/docs/atlas/atlas-operator/

コマンド構文
atlas kubernetes config generate [options]
名前
タイプ
必須
説明

--clusterName

string

false

インポートする 1 つ以上のカンマ区切りのクラスター名

--dataFederationName

string

false

インポートする 1 つ以上のカンマで区切られたData Federation名

-h, --help

false

生成用ヘルプ

--includeSecrets

false

プロジェクト、ユーザー、配置エンティティのデータを含むKubernetesシークレットを生成するフラグ。

--independentResources

false

独立使用をサポートする生成されたリソースを、 Kubernetes参照ではなく外部 ID を使用するようにするフラグ。

--operatorVersion

string

false

リソースを生成するための Atlas Kubernetes Operator のバージョン。 この値のデフォルトは " 2.13.0です。

--orgId

string

false

使用する組織ID。 このオプションは、構成ファイルまたは環境変数の 設定を上書きします。

--projectId

string

false

使用するプロジェクトを識別する 16 進数の string。 このオプションは、構成ファイルまたは環境変数の 設定を上書きします。

--targetNamespace

string

false

生成されたKubernetesエンティティに使用する名前空間

名前
タイプ
必須
説明

-P, --profile

string

false

構成ファイルから使用するプロファイルの名前。Atlas CLI のプロファイルの詳細については、 https://docub.mongodb.org/core/atlas-cli-save- connection-settings を参照してください。

# 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, but use external IDs where supported:
atlas kubernetes config generate --projectId=<projectId> --independentResources
# 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>