mongodb-community-cluster

by shini4i

Helm chartv0.2.1App 6.0.2Verified publisher

A Helm chart for deploying MongoDBCommunity cluster (community-operator)

About this chart

mongodb-community-cluster

A Helm chart for deploying MongoDBCommunity cluster (community-operator)

Maintainers

NameEmailUrl
Vadim Gedz[email protected]https://github.com/shini4i

Values

KeyTypeDefaultDescription
additionalMongodConfigobject{}additional MongoDB configuration
affinityobject{}
arbiter.enabledboolfalseIf arbiter should be enabled
arbiter.replicaCountint1Should be less than the value of main replicaCount
backups.aws.bucketNamestring""
backups.aws.bucketPrefixstring""
backups.aws.endpointOverridestring""
backups.aws.existingSecretstring""pre-created secret with AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and optional AWS_DEFAULT_REGION
backups.enabledboolfalse
backups.image.repositorystring"ghcr.io/shini4i/mongodb-tools-awscli"
backups.image.tagstring"6.0.2"
backups.schedulestring"30 0 * * *"
backups.userstring""a user to use for backups (from users block)
debugPodobject{"enabled":false}If debug pod with mongosh should be deployed
fullnameOverridestring""
job.backoffLimitint5
job.image.repositorystring"bitnami/kubectl"
job.image.tagstring"1.25.3"
job.restartPolicystring"OnFailure"
metrics.additionalLabelsobject{}labels to add to ServiceMonitor
metrics.enabledboolfalseif ServiceMonitor should be deployed
mongod.persistence.data.accessModes[0]string"ReadWriteOnce"
mongod.persistence.data.sizestring"5Gi"
mongod.persistence.data.storageClassNamestring""
mongod.persistence.logs.accessModes[0]string"ReadWriteOnce"
mongod.persistence.logs.sizestring"1Gi"
mongod.persistence.logs.storageClassNamestring""
mongod.resources.limits.cpustring"100m"
mongod.resources.limits.memorystring"128Mi"
mongod.resources.requests.cpustring"100m"
mongod.resources.requests.memorystring"128Mi"
mongod.tls.caConfigMapRef.namestring"tls-ca-configmap-name"
mongod.tls.certificateKeySecretRef.namestring"tls-secret-name"
mongod.tls.enabledboolfalseEnable TLS for MongoDB communication
mongod.typestring"ReplicaSet"MongoDB setup type
mongodb_agent.resources.limits.cpustring"100m"
mongodb_agent.resources.limits.memorystring"128Mi"
mongodb_agent.resources.requests.cpustring"100m"
mongodb_agent.resources.requests.memorystring"128Mi"
nameOverridestring""
nodeSelectorobject{}
replicaCountint1MongoDB instances count
serviceAccount.nameOverridestring""should match database.name from operator chart
tolerationslist[]
userslist[]
versionstring""MongoDB version (defaults to appVersion)

Autogenerated from chart metadata using helm-docs v1.11.0

Deploy mongodb-community-cluster with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mongodb-community-cluster 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmongodb-community-cluster is pinned at v0.2.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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