Menu

Tree [48ca44] main /
 History

HTTPS access


File Date Author Commit
 .azure-pipelines 2022-02-20 Abhishek Dubey Abhishek Dubey [12468c] Added feature for security context (#47)
 .github 2022-09-03 Abhishek Dubey Abhishek Dubey [f322b1] Create codeql-analysis.yml
 api 2022-09-03 Abhishek Dubey Abhishek Dubey [5ec456] [BugFix] Fixed standalone service creation (#61)
 config 2022-03-31 Abhishek Dubey Abhishek Dubey [9862fc] [Development][Add] Added support for custom con...
 controllers 2022-09-03 Abhishek Dubey Abhishek Dubey [5ec456] [BugFix] Fixed standalone service creation (#61)
 docs 2022-03-31 Abhishek Dubey Abhishek Dubey [31aec7] Updated CHANGELOG and docs to v0.3.0 (#52)
 examples 2022-12-06 Abhishek Dubey Abhishek Dubey [3caa4f] Added eks cluster creation example (#64)
 hack 2022-01-02 Abhishek Dubey Abhishek Dubey [578297] [Development][Change] Changed example folder st...
 k8sgo 2022-09-03 Abhishek Dubey Abhishek Dubey [33649c] [BugFix]Fixed cluster creation and validation (...
 mongo 2022-01-07 Abhishek Dubey Abhishek Dubey [a69989] [Development][Add] Added code to create mongo c...
 monitoring 2022-02-20 Abhishek Dubey Abhishek Dubey [5e528d] [Feature][Add] Added alerting documentation and...
 static 2022-02-16 Abhishek Dubey Abhishek Dubey [76cd06] Added MongoDB dashboard for grafana screenshot
 .dockerignore 2022-02-05 Abhishek Dubey Abhishek Dubey [facc90] [Docs][Add] Added docs for v0.1.0 (#29)
 .gitignore 2022-02-05 Abhishek Dubey Abhishek Dubey [facc90] [Docs][Add] Added docs for v0.1.0 (#29)
 CHANGELOG.md 2022-03-31 Abhishek Dubey Abhishek Dubey [31aec7] Updated CHANGELOG and docs to v0.3.0 (#52)
 Dockerfile 2023-04-27 Shubham Gupta Shubham Gupta [dea0c8] go version upgrade
 LICENSE 2021-12-26 iamabhishek-dubey iamabhishek-dubey [0d1e8f] Added initial codebase for mongodb operator
 Makefile 2022-09-03 Abhishek Dubey Abhishek Dubey [5ec456] [BugFix] Fixed standalone service creation (#61)
 PROJECT 2021-12-26 iamabhishek-dubey iamabhishek-dubey [a87ecf] Added API code for mongodb and mongodb cluster
 README.md 2022-02-28 Abhishek Dubey Abhishek Dubey [f91b47] Fixed typo mistakes in docs (#49)
 SECURITY.md 2022-09-03 Abhishek Dubey Abhishek Dubey [04d229] Create SECURITY.md
 go.mod 2023-04-27 Shubham Gupta Shubham Gupta [48ca44] go version upgrade
 go.sum 2023-04-27 Shubham Gupta Shubham Gupta [48ca44] go version upgrade
 main.go 2021-12-26 iamabhishek-dubey iamabhishek-dubey [a87ecf] Added API code for mongodb and mongodb cluster

Read Me

Azure Pipelines GoReportCard GitHub go.mod Go version (subdirectory of monorepo) Docker License

MongoDB Operator is an operator created in Golang to create, update, and manage MongoDB standalone, replicated, and arbiter replicated setup on Kubernetes and Openshift clusters. This operator is capable of doing the setup for MongoDB with all the required best practices.

For documentation, please refer to https://ot-mongodb-operator.netlify.app/

Architecture

Architecture for MongoDB operator looks like this:-

Purpose

The aim and purpose of creating this MongoDB operator are to provide an easy and extensible way of deploying a Production grade MongoDB setup on Kubernetes. It helps in designing the different types of MongoDB setup like - standalone, replicated, etc with security and monitoring best practices.

Supported Features

  • MongoDB replicated cluster setup
  • MongoDB standalone setup
  • MongoDB replicated cluster failover and recovery
  • Monitoring support with MongoDB Exporter
  • Password based authentication for MongoDB
  • Kubernetes's resources for MongoDB standalone and cluster

Prerequisites

MongoDB Operator requires a Kubernetes cluster of version >=1.16.0. If you have just started with the CRD and Operators, its highly recommended using the latest version of Kubernetes.

Getting Started

If you want to start using the mongodb-operator in a quickstart mode, you can begin with the documentation. It will help you and guide you through the setup of MongoDB step-by-step.

The configuration for MongoDB and MongoDB cluster setup is defined inside the CRD manifests. But all the examples manifests can be found in the examples directory.

Quickstart

MongoDB Operator Setup

The setup can be done by using helm. The mongodb-operator can easily get installed using helm commands.

# Add the helm chart
$ helm repo add ot-helm https://ot-container-kit.github.io/helm-charts/
...
"ot-helm" has been added to your repositories
````

```shell
# Deploy the MongoDB Operator
$ helm upgrade mongodb-operator ot-helm/mongodb-operator \
  --install --namespace ot-operators --install
...
Release "mongodb-operator" does not exist. Installing it now.
NAME: mongodb-operator
LAST DEPLOYED: Sun Jan  9 23:05:13 2022
NAMESPACE: ot-operators
STATUS: deployed
REVISION: 1

After the deployment, verify the installation of operator

# Testing Operator
$ helm test mongodb-operator --namespace ot-operators
...
NAME: mongodb-operator
LAST DEPLOYED: Sun Jan  9 23:05:13 2022
NAMESPACE: ot-operators
STATUS: deployed
REVISION: 1
TEST SUITE:     mongodb-operator-test-connection
Last Started:   Sun Jan  9 23:05:54 2022
Last Completed: Sun Jan  9 23:06:01 2022
Phase:          Succeeded

Upcoming Features

  • MongoDB sharded cluster setup
  • Customizable configuration changes in MongoDB
  • TLS security support
  • Backup and restore support
  • DB and user creation
  • Insightful Grafana dashboards
MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.