Atlas Kubernetes Operator で使用する Kubernetes 構成リソースを生成します。
このコマンドは、プロジェクト、配置、ユーザーを含む Atlas オブジェクトの構成を Kubernetes 互換形式でエクスポートし、Atlas Kubernetes Operator を使用してこれらのリソースを管理できるようにします。 詳細については、 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.11.0です。 | 
| --orgId | string | false | 使用する組織ID。 このオプションは、構成ファイルまたは環境変数の 設定を上書きします。 | 
| --projectId | string | false | 使用するプロジェクトを識別する 16 進数の string。 このオプションは、構成ファイルまたは環境変数の 設定を上書きします。 | 
| --targetNamespace | string | false | 生成されたKubernetesエンティティに使用する名前空間 | 
継承されたオプション
| 名前 | タイプ | 必須 | 説明 | 
|---|---|---|---|
| -P, --profile | string | false | 構成ファイルから使用するプロファイルの名前。Atlas CLI のプロファイルの詳細については、https://dochub.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>