https://github.com/rhecosystemappeng/mongodb-atlas-kubernetes
MongoDB Atlas Kubernetes Operator - Manage your MongoDB Atlas clusters from Kubernetes
https://github.com/rhecosystemappeng/mongodb-atlas-kubernetes
Last synced: 6 months ago
JSON representation
MongoDB Atlas Kubernetes Operator - Manage your MongoDB Atlas clusters from Kubernetes
- Host: GitHub
- URL: https://github.com/rhecosystemappeng/mongodb-atlas-kubernetes
- Owner: RHEcosystemAppEng
- License: apache-2.0
- Fork: true (mongodb/mongodb-atlas-kubernetes)
- Created: 2021-05-12T15:55:20.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-04-13T18:46:31.000Z (about 3 years ago)
- Last Synced: 2024-06-21T09:15:00.893Z (about 2 years ago)
- Language: Go
- Homepage: http://www.mongodb.com/cloud/atlas
- Size: 3.4 MB
- Stars: 0
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# MongoDB Atlas Operator (Beta)
[](https://github.com/mongodb/mongodb-atlas-kubernetes/actions/workflows/test.yml?query=branch%3Amain)
[](https://github.com/mongodb/go-client-mongodb-atlas)
The MongoDB Atlas Operator provides a native integration between the Kubernetes orchestration platform and MongoDB Atlas — the only multi-cloud document database service that gives you the versatility you need to build sophisticated and resilient applications that can adapt to changing customer demands and market trends.
> Current Status: *Beta*.
> The Operator gives users the ability to provision
> Atlas projects, clusters and database users using Kubernetes Specifications and bind connection information
> into applications deployed to Kubernetes or via Private Endpoints on AWS or Azure.
> More features like private endpoints, backup management, LDAP/X.509 authentication, etc. are yet to come.
The full documentation for the Operator can be found [here](https://docs.atlas.mongodb.com/atlas-operator/)
## Quick Start guide
### Step 1. Deploy Kubernetes operator using all in one config file
```
kubectl apply -f https://raw.githubusercontent.com/mongodb/mongodb-atlas-kubernetes/main/deploy/all-in-one.yaml
```
### Step 2. Create Atlas Cluster
**1.** Create an Atlas API Key Secret
In order to work with the Atlas Operator you need to provide [authentication information](https://docs.atlas.mongodb.com/configure-api-access)
to allow the Atlas Operator to communicate with Atlas API. Once you have generated a Public and Private key in Atlas, you can create a Kuberentes Secret with:
```
kubectl create secret generic mongodb-atlas-operator-api-key \
--from-literal="orgId=" \
--from-literal="publicApiKey=" \
--from-literal="privateApiKey=" \
-n mongodb-atlas-system
kubectl label secret mongodb-atlas-operator-api-key atlas.mongodb.com/type=credentials -n mongodb-atlas-system
```
**2.** Create an `AtlasProject` Custom Resource
The `AtlasProject` CustomResource represents Atlas Projects in our Kubernetes cluster. You need to specify
`projectIpAccessList` with the IP addresses or CIDR blocks of any hosts that will connect to the Atlas Cluster.
```
cat <