mongodb-sharded
by [riftbit]
NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. Sharded topology.
About this chart
MongoDB® Sharded packaged by Bitnami
MongoDB® Sharded 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.
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.
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-sharded
Introduction
This chart bootstraps a MongoDB® Sharded 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 NGINX Ingress, cert-manager, fluentd and Prometheus on top of the BKPR.
Prerequisites
- Kubernetes 1.12+
- Helm 3.1.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 bitnami/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 |
|---|---|---|
nameOverride | String to partially override mongodb.fullname template (will maintain the release name) | "" |
fullnameOverride | String to fully override mongodb.fullname template | "" |
clusterDomain | Kubernetes Cluster Domain | cluster.local |
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) | 4.4.9-debian-10-r0 |
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 |
mongodbRootPassword | MongoDB® root password | "" |
replicaSetKey | Replica Set key (shared for shards and config servers) | "" |
existingSecret | Existing secret with MongoDB® credentials | "" |
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.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 | "" |
volumePermissions.enabled | Enable init container that changes volume permissions in the data directory (for cases where the default k8s runAsUser and fsUser values do not work) | false |
volumePermissions.image.registry | Init container volume-permissions image registry | docker.io |
volumePermissions.image.repository | Init container volume-permissions image name | bitnami/bitnami-shell |
volumePermissions.image.tag | Init container volume-permissions image tag | 10-debian-10-r197 |
volumePermissions.image.pullPolicy | Init container volume-permissions image pull policy | Always |
volumePermissions.image.pullSecrets | Init container volume-permissions image pull secrets | [] |
volumePermissions.resources | Init container resource requests/limit | {} |
securityContext.enabled | Enable security context | true |
securityContext.fsGroup | Group ID for the container | 1001 |
securityContext.runAsUser | User ID for the container | 1001 |
securityContext.runAsNonRoot | Run containers as non-root users | true |
service.name | Specify an explicit service name |
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 v3.9.7 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