mongodb-sharded
MongoDB(R) is an open source NoSQL database that uses JSON for data storage. MongoDB(TM) Sharded improves scalability and reliability for large datasets by distributing data across multiple machines.
About this chart
MongoDB(R) Sharded packaged by Bitnami
MongoDB(R) is an open source NoSQL database that uses JSON for data storage. MongoDB(TM) Sharded improves scalability and reliability for large datasets by distributing data across multiple machines.
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(R) is run and maintained by MongoDB, which is a completely separate project from Bitnami.
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/mongodb-sharded
Introduction
This chart bootstraps a MongoDB(®) Sharded deployment on a Kubernetes cluster using the Helm package manager.
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.
This chart uses the sharding method for distributing data across multiple machines. This is meant for deployments with very large data sets and high throughput operations.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
- ReadWriteMany volumes for deployment scaling
Installing the Chart
To install the chart with the release name my-release:
$ helm install my-release my-repo/mongodb-sharded
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.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global storage class for dynamic provisioning | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.name | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
namespaceOverride | String to fully override common.names.namespace | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
clusterDomain | Kubernetes cluster domain name | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
MongoDB(®) Sharded parameters
| Name | Description | Value |
|---|---|---|
image.registry | MongoDB(®) Sharded image registry | docker.io |
image.repository | MongoDB(®) Sharded Image name | bitnami/mongodb-sharded |
image.tag | MongoDB(®) Sharded image tag (immutable tags are recommended) | 6.0.2-debian-11-r10 |
image.digest | MongoDB(®) Sharded image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | MongoDB(®) Sharded image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
image.debug | Specify if debug logs should be enabled | false |
auth.enabled | Enable authentication | true |
auth.rootUser | MongoDB(®) root user | root |
auth.rootPassword | MongoDB(®) root password | "" |
auth.replicaSetKey | Key used for authentication in the replicaset (only when architecture=replicaset) | "" |
auth.existingSecret | Existing secret with MongoDB(®) credentials (keys: mongodb-password, mongodb-root-password, mongodb-replica-set-key) | "" |
auth.usePasswordFile | Mount credentials as files instead of using environment variables | false |
shards | Number of shards to be created | 2 |
common.mongodbEnableNumactl | Enable launch MongoDB instance prefixed with "numactl --interleave=all" | false |
common.useHostnames | Enable DNS hostnames in the replica set config | true |
common.mongodbEnableIPv6 | Switch to enable/disable IPv6 on MongoDB® | false |
common.mongodbDirectoryPerDB | Switch to enable/disable DirectoryPerDB on MongoDB® | false |
common.mongodbSystemLogVerbosity | MongoDB® system log verbosity level | 0 |
common.mongodbDisableSystemLog | Whether to disable MongoDB® system log or not | false |
common.mongodbMaxWaitTimeout | Maximum time (in seconds) for MongoDB® nodes to wait for another MongoDB® node to be ready | 120 |
common.initScriptsCM | Configmap with init scripts to execute | "" |
common.initScriptsSecret | Secret with init scripts to execute (for sensitive data) | "" |
common.extraEnvVars | An array to add extra env vars | [] |
common.extraEnvVarsCM | Name of a ConfigMap containing extra env vars | "" |
common.extraEnvVarsSecret | Name of a Secret containing extra env vars | "" |
common.sidecars | Add sidecars to the pod | [] |
common.initContainers | Add init containers to the pod | [] |
common.podAnnotations | Additional pod annotations | {} |
common.podLabels | Additional pod labels | {} |
common.extraVolumes | Array to add extra volumes | [] |
common.extraVolumeMounts | Array to add extra mounts (normally used with extraVolumes) | [] |
common.containerPorts.mongodb | MongoDB container port | 27017 |
common.serviceAccount.create | Whether to create a Service Account for all pods automatically | false |
common.serviceAccount.name | Name of a Service Account to be used by all Pods | "" |
Deploy mongodb-sharded with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mongodb-sharded 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-sharded is pinned at v6.1.10 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