MongoDB
Atlas Kubernetes Operator
A seamless MongoDB + Kubernetes experience
Manage Atlas clusters directly in Kubernetes, using Kubernetes custom resources. Use the Kubernetes API to control Atlas resources and integrate Atlas with Kubernetes-native CI/CD pipelines.Built to Kubernetes standards
The Atlas Operator is open source and built with the CNCF Operator Framework. It works with Operator Lifecycle Manager and supports any Certified Kubernetes Distributions.The best of MongoDB on any cloud
Kubernetes-deployed applications are portable and resilient. They deserve a data layer to match: MongoDB Atlas is the multi-cloud developer data platform that provides the versatility you need to build resilient and sophisticated apps.Feature overview
What is MongoDB Atlas?
MongoDB Atlas gives you the versatility you need to build sophisticated applications that can adapt to changing customer demands and market trends. Not only is it the only multi-cloud document database available, it also delivers the most advanced security and data distribution capabilities of any fully managed service.
What is Kubernetes?
Kubernetes is an open-source container-orchestration system for automating computer application deployment, scaling, and management.
Which Kubernetes distributions are supported?
MongoDB supports all CNCF-certified Kubernetes distributions. Most people rely on a Kubernetes distribution to install Kubernetes. A Kubernetes distribution is a software package that provides a pre-built version of Kubernetes so you don’t have to go through the hassle of installing the many components of Kubernetes on your own and rebuilding them with every update.
How can I get started with the Atlas Kubernetes Operator?
For a much faster install process, users can use the Atlas CLI to easily install the Atlas Kubernetes Operator into their currently connected Kubernetes cluster, and optionally automate the setup. The CLI command automatically creates a new API key and corresponding Atlas secret, and then turns it into a Kubernetes secret, bypassing the need to do this manually.
From there on out, developers can manage their configuration for Atlas through yaml, often through a GitOps workflow, as with the rest of their stack configuration, which is commonly used to save developers from the manual step of deploying directly to Kubernetes.
How is the MongoDB Atlas Operator different from other ways of using MongoDB with Kubernetes?
The MongoDB Atlas Operator makes it easy to deploy, manage, and access MongoDB Atlas, the fully managed cloud database, natively from Kubernetes on your cloud platform of choice.
The MongoDB Enterprise Operator automates and manages MongoDB clusters on self-managed infrastructure for MongoDB Enterprise Advanced customers. The MongoDB Community Operator manages simple clusters of MongoDB Community on self-managed infrastructure.
The MongoDB Atlas Open Service Broker has been deprecated and replaced by the Atlas Operator.
Can I use the Atlas Operator to manage existing MongoDB Atlas clusters with Kubernetes?
Yes, the MongoDB Atlas Operator can take control of existing Atlas clusters. By creating an AtlasProject custom resource with matching Atlas Project ID and providing correct API keys, the MongoDB Atlas Operator can detect existing Atlas clusters and establish a connection instead of re-creating it.
How can I move Atlas configurations into Kubernetes?
Existing users have the option to export Kubernetes compatible Atlas configurations through the same installation CLI command outlined above or using a separate command. Customers can use one of two commands to help set up management of their existing Atlas projects, deployments and users through the Operator. The Atlas CLI atlas kubernetes config generate command exports the configuration onto the users machine in the right format for use with the Operator, this is great for those who want to review the output or push the files into a repository for use with a GitOps workflow. Or, the Atlas CLI command atlas kubernetes config apply which automatically applies the exported configuration straight into your connected Kubernetes cluster, great for testing or when configuration in Kubernetes is your source of truth.
What flavors of Kubernetes are supported by MongoDBs Kubernetes Operators?
Almost every established flavor of Kubernetes available adds to Kubernetes somehow, without undermining the inherent capabilities of Kubernetes - this is part of the Certified Kubernetes Conformance Program and means that while we don't test every variant of Kubernetes, our Operators are supported to work on every flavor.
We work to ensure we support all currently supported versions of base Kubernetes, as well as having tested support for Openshift.
Where can I get more information?
Read our MongoDB Atlas Operator documentation. For more information about MongoDB Kubernetes solutions, go to our Kubernetes integration page. If you’re interested in a resource we’re not currently supporting, or you have any other feedback, please share your thoughts.
Get started with Atlas and Kubernetes
- User management
- Project management
- Cluster management
- Serverless instances
- Backup