You can use the Atlas Kubernetes Operator to manage resources in Atlas for Government. The Atlas Kubernetes Operator only supports managing Atlas for Government on AWS and Google Cloud. It doesn't support Atlas Data Federation, Serverless instances, or Flex clusters. For more information, see Supported Features in the MongoDB Atlas for Government documentation.
このページでは、Atlas Kubernetes Operator を構成して Atlas for Government のリソースを管理する方法について説明します。
前提条件
Atlas Kubernetes Operator をインストールする必要があります。 Atlas CLI で --govフラグを使用して Atlas Kubernetes Operator をインストールする場合は、次の手順のステップ 1 ~ 3 をスキップできます。 Atlas Kubernetes Operator のインストールに--govフラグを指定しない場合は、次の手順のすべての手順を完了します。
Atlas CLI を使用して Atlas Kubernetes Operator をインストールする方法の詳細については、「 クイック スタート 」を参照してください。
手順
Atlas Kubernetes Operator をインストールした後、次の操作を実行します。
ファイル内の spec.containers.args の下に atlas-domain 設定を見つけます。
apiVersion: apps/v1 kind: Deployment metadata: ... spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: ... strategy: ... template: metadata: ... spec: containers: - args: - --atlas-domain=https://cloud.mongodb.com/ - --leader-elect - --health-probe-bind-address=:8081 - --metrics-bind-address=127.0.0.1:8080 - --log-level=info - --log-encoder=json command: - /manager env: - name: OPERATOR_POD_NAME ...
Atlas Kubernetes Operatorの配置。
クイック スタートの手順に従って、Atlas Kubernetes Operator を配置します。
Atlas for Government のクラウドプロバイダーリージョンを設定します。
Atlas for Government のクラウドプロバイダーリージョンを設定するには、AtlasProject カスタムリソースの spec.regionUsageRestrictions パラメータを使用します。spec.regionUsageRestrictions パラメータを省略すると、この設定はデフォルトで GOV_REGIONS_ONLY になります。詳しくは、spec.regionUsageRestrictions を参照してください。