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.
This page describes how to configure the Atlas Kubernetes Operator to manage resources in Atlas for Government.
Prerequisites
You must install the Atlas Kubernetes Operator using Atlas CLI with the --gov flag. To learn more about installing the Atlas Kubernetes Operator using the Atlas CLI, see Quick Start.
Procedure
After you install the Atlas Kubernetes Operator, do the following:
Deploy Atlas Kubernetes Operator.
Follow the procedure in the Quick Start to deploy Atlas Kubernetes Operator. If you install the Atlas Kubernetes Operator using the Atlas CLI, you must append the --atlasGov flag to the installation command.
Configure the Atlas Kubernetes Operator for the Atlas for Government URL.
Configure the Atlas Kubernetes Operator to connect to the Atlas for Government API URL (https://cloud.mongodbgov.com/):
If you deploy using Helm, set
atlasURItohttps://cloud.mongodbgov.com/in yourvalues.yamlfile.If you deploy the operator directly, pass the
--atlas-domain=https://cloud.mongodbgov.com/flag when starting the operator.
If you deployed the Atlas Kubernetes Operator using the Atlas CLI with the --atlasGov flag in the previous step, the operator is already configured to use the correct URL.
Set the cloud provider region for Atlas for Government.
Use the spec.regionUsageRestrictions parameter in the AtlasProject custom resource to set the cloud provider region for Atlas for Government. If you omit the spec.regionUsageRestrictions parameter, this setting defaults to COMMERCIAL_FEDRAMP_REGIONS_ONLY. To learn more, see spec.regionUsageRestrictions.