Welcome to the MDB CE Self-Serve POC project! This repository contains a proof-of-concept (POC) for a self-serve solution designed for MongoDB Community clusters running on Kubernetes.
The solution is built to operate seamlessly on Kubernetes and consists of the following components:
- mdb-self-serve-poc-api: The backend API that handles requests and manages interactions with the MongoDB database.
- mdb-self-serve-poc-ui: The frontend user interface that allows users to interact with the self-serve solution.
- mongo: The datastore used to store application data.
Before you get started, ensure you have the following installed:
- Minikube - for running Kubernetes locally.
- Helm - for managing Kubernetes applications.
- kubectl - the command-line tool for interacting with Kubernetes clusters.
Follow these steps to set up the self-serve solution on your local Kubernetes cluster:
- Start Minikube: Allocate resources for your Minikube cluster.
minikube start --cpus=4
- Install the MongoDB Community Operator: Use Helm to install the MongoDB Community Operator.
helm install community-operator mongodb/community-operator
- Deploy the Application: Apply the deployment configuration to your Kubernetes cluster.
kubectl apply -f deployment.yaml
- Expose the Services: Create a tunnel to access the services running in your Minikube cluster.
minikube tunnel
Once the services are up and running, you can access the UI through your web browser. The URL will typically be http://localhost.
After creating a new cluster, open a new terminal window and run kubectl get mdbc -w -o yaml
to observe cluster creation.