mongo-compass-web-helm

Mongo Compass Web Helm Chart

This Helm chart provides an easy way to deploy a web-based MongoDB Compass UI on your Kubernetes cluster, offering a convenient graphical interface to manage and interact with your MongoDB databases.


🚀 Features


📦 Installation

Prerequisites

Steps

  1. Add the Helm Repository:

    helm repo add mongo-compass-web https://underndog.github.io/mongo-compass-web-helm helm repo update

  2. Install the Chart:

    helm install mongo-compass-web mongo-compass-web/mongo-compass

  3. Access the UI:

    kubectl get svc

Access the MongoDB Compass UI by navigating to the service’s external IP or using port forwarding:

kubectl port-forward svc/mongo-compass-web 8080:8080

Then open your browser and go to http://localhost:8080.


⚙️ Configuration

The chart can be customized using the following parameters in your values.yaml file:

To override these values during installation:

helm install mongo-compass-web mongo-compass-web/mongo-compass \
  --set replicaCount=2 \
   --set service.type=LoadBalancer \
   --set defaultMongodbUri=\"mongodb://username:password@host:27017/dbname\"

Note: Setting defaultMongodbUri will pre-fill the connection string in the Compass UI, making it easier for users to connect to your MongoDB instance by default. You can leave it empty to require users to enter their own connection string.


đź§Ş Development

To package and test the chart locally:

  1. Package the Chart:

    helm package ./mongo-compass --destination .

  2. Create or Update the Helm Repository Index:

    helm repo index ./ --url https://underndog.github.io/mongo-compass-web-helm

  3. Install the Chart Locally:

    helm install mongo-compass-web ./mongo-compass-1.1.1.tgz


đź“„ License

This project is licensed under the Apache 2.0 License.


🙏 Acknowledgments

This Helm chart utilizes the Docker image from haohanyang/compass-web, which brings MongoDB Compass to the browser.


For more information and updates, visit the GitHub repository.

Script

helm package ./mongo-compass –destination . helm repo index ./ –url https://underndog.github.io/mongo-compass-web-helm