mongodb
by KubeGems
NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications.
About this chart
MongoDB® packaged by Bitnami
MongoDB® is a cross-platform document-oriented database. Classified as a NoSQL database, MongoDB® eschews the traditional table-based relational database structure in favor of JSON-like documents with dynamic schemas, making the integration of data in certain types of applications easier and faster.
Disclaimer: The respective trademarks mentioned in the offering are owned by the respective companies. We do not provide a commercial license for any of these products. This listing has an open-source license. MongoDB® is run and maintained by MongoDB, which is a completely separate project from Bitnami.
TL;DR
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/mongodb
Introduction
This chart bootstraps a MongoDB® deployment on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This chart has been tested to work with Fluentd and Prometheus on top of the BKPR.
Prerequisites
- Kubernetes 1.12+
- Helm 3.1.0
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
$ helm install my-release bitnami/mongodb
The command deploys MongoDB® on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
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.
Architecture
This chart allows installing MongoDB® using two different architecture setups: standalone or replicaset. Use the architecture parameter to choose the one to use:
architecture="standalone"
architecture="replicaset"
Refer to the chart documentation for more information on each of these architectures.
Parameters
The following tables lists the configurable parameters of the MongoDB® chart and their default values per section/component:
Global parameters
| Parameter | Description | Default |
|---|---|---|
global.imageRegistry | Global Docker image registry | nil |
global.imagePullSecrets | Global Docker registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
global.storageClass | Global storage class for dynamic provisioning | nil |
global.namespaceOverride | Global string to override the release namespace | nil |
Common parameters
| Parameter | Description | Default |
|---|---|---|
nameOverride | String to partially override mongodb.fullname | nil |
fullnameOverride | String to fully override mongodb.fullname | nil |
clusterDomain | Default Kubernetes cluster domain | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] (evaluated as a template) |
schedulerName | Name of the scheduler (other than default) to dispatch pods | nil |
image.registry | MongoDB® image registry | docker.io |
image.repository | MongoDB® image name | bitnami/mongodb |
image.tag | MongoDB® image tag | {TAG_NAME} |
image.pullPolicy | MongoDB® image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
image.debug | Set to true if you would like to see extra information on logs | false |
MongoDB® parameters
| Parameter | Description | Default |
|---|---|---|
architecture | MongoDB® architecture (standalone or replicaset) | standalone |
hostAliases | Add deployment host aliases | [] |
useStatefulSet | Set to true to use a StatefulSet instead of a Deployment (only when architecture=standalone) | false |
commonAnnotations | Annotations to be added to all Mongo resources | {} |
auth.enabled | Enable authentication | true |
auth.rootPassword | MongoDB® admin password | random 10 character long alphanumeric string |
auth.username | MongoDB® custom user (mandatory if auth.database is set) | nil |
auth.password | MongoDB® custom user password | random 10 character long alphanumeric string |
auth.database | MongoDB® custom database | nil |
auth.replicaSetKey | Key used for authentication in the replicaset (only when architecture=replicaset) | random 10 character long alphanumeric string |
auth.existingSecret | Existing secret with MongoDB® credentials (keys: mongodb-password, mongodb-root-password, mongodb-replica-set-key) | nil |
replicaSetName | Name of the replica set (only when architecture=replicaset) | rs0 |
replicaSetHostnames | Enable DNS hostnames in the replicaset config (only when architecture=replicaset) | true |
enableIPv6 | Switch to enable/disable IPv6 on MongoDB® | false |
directoryPerDB | Switch to enable/disable DirectoryPerDB on MongoDB® | false |
systemLogVerbosity | MongoDB® system log verbosity level | 0 |
disableSystemLog | Switch to enable/disable MongoDB® system log | false |
disableJavascript | Switch to enable/disable MongoDB® server-side JavaScript execution | false |
enableJournal | Switch to enable/disable MongoDB® Journaling | true |
configuration | MongoDB® configuration file to be used | {} |
existingConfigmap | Name of existing ConfigMap with MongoDB® configuration | nil |
initdbScripts | Dictionary of initdb scripts | nil |
initdbScriptsConfigMap | ConfigMap with the initdb scripts | nil |
command | Override default container command (useful when using custom images) | nil |
args | Override default container args (useful when using custom images) | nil |
extraFlags | MongoDB® additional command line flags | [] |
extraEnvVars | Extra environment variables to add to MongoDB® pods | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | nil |
extraEnvVarsSecret | Name of existing Secret containing extra env vars (in case of sensitive data) | nil |
tls.enabled | Enable MongoDB® TLS support between nodes in the cluster as well as between mongo clients and nodes | false |
tls.autoGenerated | Generate automatically self-signed TLS certificates | true |
tls.existingSecret | Existing secret with TLS certificates (keys: mongodb-ca-cert, mongodb-ca-key, client-pem) | nil |
tls.caCert | Custom CA certificated (base64 encoded) | nil |
tls.caKey | CA certificate private key (base64 encoded) | nil |
tls.image.registry | Init container TLS certs setup image registry (nginx) | docker.io |
tls.image.repository | Init container TLS certs setup image name (nginx) | bitnami/nginx |
tls.image.tag | Init container TLS certs setup image tag (nginx) | {TAG_NAME} |
tls.image.pullPolicy | Init container TLS certs setup image pull policy (nginx) | Always |
MongoDB® statefulset parameters
| Parameter | Description | Default |
|---|
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 v10.20.5 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