mongodb

by KubeSphere

Helm chartv0.3.2App 4.2.1Verified publisher

MongoDB is a general purpose, document-based, distributed database built for modern application developers and for the cloud era.

About this chart

MongoDB

TL;DR;

helm install ks-test/mongodb

Installing

To install the chart with the release name my-release:

helm install --name my-release ks-test/mongodb

The command deploys the standalone MongoDB chart on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstalling

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the mongodb chart and their default values.

ParameterDescriptionDefault
image.init.repositoryThe image of init containermikefarah/yq
image.init.tagThe tag of the init image2.4.1
image.init.pullPolicyThe pull policy of the init imageIfNotPresent
image.mongo.repositoryThe image of MongoDB containermongodb
image.mongo.tagThe tag of the MongoDB image5.0.5-alpine
image.mongo.pullPolicyThe pull policy of the MongoDB imageIfNotPresent
extraConfigurationsCustom configurations for mongod.conf{}
rootUsernameThe username of root user to interact with MongoDBadmin
rootPasswordThe password of root user to interact with MongoDBpassword
service.typeThe service type, can be ClusterIP, or NodePortClusterIP
service.portThe service port within the pod container27017

Deploy mongodb with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mongodb on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmongodb is pinned at v0.3.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply