mongodb
by KubeSphere
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.
| Parameter | Description | Default |
|---|---|---|
image.init.repository | The image of init container | mikefarah/yq |
image.init.tag | The tag of the init image | 2.4.1 |
image.init.pullPolicy | The pull policy of the init image | IfNotPresent |
image.mongo.repository | The image of MongoDB container | mongodb |
image.mongo.tag | The tag of the MongoDB image | 5.0.5-alpine |
image.mongo.pullPolicy | The pull policy of the MongoDB image | IfNotPresent |
extraConfigurations | Custom configurations for mongod.conf | {} |
rootUsername | The username of root user to interact with MongoDB | admin |
rootPassword | The password of root user to interact with MongoDB | password |
service.type | The service type, can be ClusterIP, or NodePort | ClusterIP |
service.port | The service port within the pod container | 27017 |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmongodb is pinned at v0.3.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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