Try It Out
In this example we will deploy MongoDB on a Kubernetes cluster using the Minimus MongoDB Advanced Helm chart. MongoDB will provide a production-ready NoSQL database with standalone or replica set architecture out of the box.
Step 1: Start Cluster
If you have a cluster to work with, skip this step. Otherwise, start a Minikube cluster. Deployment instructions
Step 2: Create Namespace
Create a namespace:
kubectl create ns mongodb-advanced
Step 3: Deploy the Helm Chart
Deploy the Minimus Helm chart:
helm install my-mongodb-advanced oci://helm.mini.dev/mongodb-advanced \
--version 19.1.13 \
-n mongodb-advanced \
--wait
If you want to override the chart's defaults, go to the Values tab, save a copy locally with your changes. Deploy the chart with your overrides using -f values.yaml:
helm install my-mongodb-advanced oci://helm.mini.dev/mongodb-advanced \
--version 19.1.13 \
-f values.yaml \
-n mongodb-advanced \
--wait
Step 4: Verify MongoDB Advanced is Running
Confirm the chart deployed successfully and MongoDB started:
kubectl get pods -n mongodb-advanced -l app.kubernetes.io/name=mongodb
You should see output similar to:
NAME READY STATUS RESTARTS AGE
my-mongodb-advanced-mongodb-0 1/1 Running 0 2m
my-mongodb-advanced-mongodb-1 1/1 Running 0 2m
my-mongodb-advanced-mongodb-arbiter-0 1/1 Running 0 2m
Step 5: Test Database Connection
Retrieve the MongoDB root password from the Kubernetes secret:
export MONGODB_ROOT_PASSWORD=$(kubectl get secret my-mongodb-advanced-mongodb \
-n mongodb-advanced \
-o jsonpath='{.data.mongodb-root-password}' | base64 -d)
Forward the MongoDB port to your local machine:
kubectl port-forward svc/my-mongodb-advanced-mongodb -n mongodb-advanced 27017:27017 &
Connect with mongosh and verify the database is operational:
mongosh "mongodb://root:${MONGODB_ROOT_PASSWORD}@localhost:27017/admin?authSource=admin" \
--eval 'db.adminCommand("ping")'
You should see { ok: 1 } confirming the connection is working.
Step 6: Clean Up
Uninstall the chart and delete the namespace to remove all resources:
helm uninstall my-mongodb-advanced -n mongodb-advanced
kubectl delete namespace mongodb-advanced
Terms & Info
Trademark
This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.
Disclaimer
Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.