helm-mongodb-operator
by jfelten
A Helm chart for MongoDB Enterprise Kubernetes Operator
About this chart
helm-mongodb-operator
A Helm chart for MongoDB Enterprise Kubernetes Operator
Homepage: https://github.com/keyporttech/helm-charts
Introduction
This Kubernetes helm chart supports the management of MongoDB applications through a Kubernetes operator. It does this by deploying to a cluster a pod running the MongoDB Enterprise Kubernetes Operator. Applications can then have the operator deploy the MongoDB Ops Manager and a MongoDB Database.
This chart was developed and tested on kubernetes version 1.19, but should work on earlier or later versions.
Requirements
Kubernetes: >=1.13-0
- helm 3 installation
- Nodes have enought resources to run the chart pod.
- The mongodb namespace to deploy into.
Images:
- MongoDB Enterprise Kubernetes Operator: quay.io/mongodb/mongodb-enterprise-operator
Installing the Chart
There are two methods that can be used to install the chart.
Use the chart from the Keyporttech Helm Repository
helm repo add keyporttech https://keyporttech.github.io/helm-charts/
helm install my-release keyporttech/helm-mongodb-operator -n mongodb
or clone this repo and install from the local file system.
$ helm install my-release . -n mongodb
Only one instances of the operator can exist in a cluster so multiple helm releases of this chart are not permissible.
Tip: There should not be a need to modify any of the chart values. Use the default values.yaml file.
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm uninstall my-release -n mongodb
All resources associated with the last release of the chart as well as its release history will be deleted.
Storage
The operator does not require any persistent storage.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| appDb.name | string | "mongodb-enterprise-appdb" | |
| database.name | string | "mongodb-enterprise-database" | |
| database.version | string | "2.0.0" | |
| debugPort | string | nil | |
| initAppDb.name | string | "mongodb-enterprise-init-appdb" | |
| initAppDb.version | string | "1.0.5" | |
| initDatabase.name | string | "mongodb-enterprise-init-database" | |
| initDatabase.version | string | "1.0.1" | |
| initOpsManager.name | string | "mongodb-enterprise-init-ops-manager" | |
| initOpsManager.version | string | "1.0.3" | |
| managedSecurityContext | bool | false | |
| namespace | string | "mongodb" | |
| needsCAInfrastructure | bool | true | |
| operator.deployment_name | string | "mongodb-enterprise-operator" | |
| operator.env | string | "prod" | |
| operator.name | string | "mongodb-enterprise-operator" | |
| operator.version | string | "1.8.2" | |
| operator.watchedResources[0] | string | "mongodb" | |
| operator.watchedResources[1] | string | "opsmanagers" | |
| operator.watchedResources[2] | string | "mongodbusers" | |
| opsManager.name | string | "mongodb-enterprise-ops-manager" | |
| registry.appDb | string | "quay.io/mongodb" | |
| registry.database | string | "quay.io/mongodb" | |
| registry.imagePullSecrets | string | nil | |
| registry.initAppDb | string | "quay.io/mongodb" | |
| registry.initDatabase | string | "quay.io/mongodb" | |
| registry.initOpsManager | string | "quay.io/mongodb" | |
| registry.operator | string | "quay.io/mongodb" | |
| registry.opsManager | string | "quay.io/mongodb" | |
| registry.pullPolicy | string | "Always" | |
| securityContext.runAsNonRoot | bool | true | |
| securityContext.runAsUser | int | 1001 | |
| subresourceEnabled | bool | true |
Source Code
Maintainers
| Name | Url | |
|---|---|---|
| Keyport Technologies, Inc. | [email protected] | https://keyporttech.github.io/ |
Contributing
Please see keyporttech charts contribution guidelines
Deploy helm-mongodb-operator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has helm-mongodb-operator 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 charthelm-mongodb-operator is pinned at v0.1.0 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