mongodb
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
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.
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 NGINX Ingress, cert-manager, fluentd and Prometheus on top of the BKPR.
Prerequisites
- Kubernetes 1.12+
- Helm 2.11+ or Helm 3.0-beta3+
- 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
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
The following table lists the configurable parameters of the MongoDB chart and their default values.
| 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 |
image.registry | MongoDB image registry | docker.io |
image.repository | MongoDB Image name | bitnami/mongodb |
image.tag | MongoDB Image tag | {TAG_NAME} |
image.pullPolicy | 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 | Specify if debug logs should be enabled | false |
nameOverride | String to partially override mongodb.fullname template with a string (will prepend the release name) | nil |
fullnameOverride | String to fully override mongodb.fullname template with a string | nil |
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/minideb |
volumePermissions.image.tag | Init container volume-permissions image tag | buster |
volumePermissions.image.pullPolicy | Init container volume-permissions image pull policy | Always |
volumePermissions.resources | Init container resource requests/limit | nil |
clusterDomain | Default Kubernetes cluster domain | cluster.local |
usePassword | Enable password authentication | true |
existingSecret | Existing secret with MongoDB credentials | nil |
mongodbRootPassword | MongoDB admin password | random alphanumeric string (10) |
mongodbUsername | MongoDB custom user (mandatory if mongodbDatabase is set) | nil |
mongodbPassword | MongoDB custom user password | random alphanumeric string (10) |
mongodbDatabase | Database to create | nil |
mongodbEnableIPv6 | Switch to enable/disable IPv6 on MongoDB | false |
mongodbDirectoryPerDB | Switch to enable/disable DirectoryPerDB on MongoDB | false |
mongodbSystemLogVerbosity | MongoDB system log verbosity level | 0 |
mongodbDisableSystemLog | Whether to disable MongoDB system log or not | false |
mongodbExtraFlags | MongoDB additional command line flags | [] |
service.name | Kubernetes service name | nil |
service.annotations | Kubernetes service annotations, evaluated as a template | {} |
service.type | Kubernetes Service type | ClusterIP |
service.clusterIP | Static clusterIP or None for headless services | nil |
service.port | MongoDB service port | 27017 |
service.nodePort | Port to bind to for NodePort service type | nil |
service.loadBalancerIP | Static IP Address to use for LoadBalancer service type | nil |
service.externalIPs | External IP list to use with ClusterIP service type | [] |
service.loadBalancerSourceRanges | List of IP ranges allowed access to load balancer (if supported) | [] (does not add IP range restrictions to the service) |
replicaSet.enabled | Switch to enable/disable replica set configuration | false |
replicaSet.name | Name of the replica set | rs0 |
replicaSet.useHostnames | Enable DNS hostnames in the replica set config | true |
replicaSet.key | Key used for authentication in the replica set | random alphanumeric string (10) |
replicaSet.replicas.secondary | Number of secondary nodes in the replica set | 1 |
| `replicaSet.replicas.arbite |
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 v7.8.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