stash-mongodb

by AppsCode Inc.

Helm chartv4.2.3App 4.2.3Verified publisher

stash-mongodb - MongoDB database backup and restore plugin for Stash by AppsCode

About this chart

stash-mongodb

stash-mongodb - MongoDB database backup/restore plugin for Stash by AppsCode.

TL;DR;

helm repo add appscode https://charts.appscode.com/stable/
helm repo update
helm install stash-mongodb-4.2.3 appscode/stash-mongodb -n kube-system --version=4.2.3

Introduction

This chart installs necessary Function and Task definition to backup or restore MongoDB database 4.2.3 using Stash.

Prerequisites

  • Kubernetes 1.11+

Installing the Chart

  • Add AppsCode chart repository to your helm repository list,
helm repo add appscode https://charts.appscode.com/stable/
  • Update helm repositories to fetch latest charts from the remove repository,
helm repo update
  • Install the chart with the release name stash-mongodb-4.2.3 run the following command,
helm install stash-mongodb-4.2.3 appscode/stash-mongodb -n kube-system --version=4.2.3

The above commands installs Functions and Task crds that are necessary to backup MongoDB database 4.2.3 using Stash.

Uninstalling the Chart

To uninstall/delete the stash-mongodb-4.2.3 run the following command,

helm uninstall stash-mongodb-4.2.3 -n kube-system

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the stash-mongodb chart and their default values.

ParameterDescriptionDefault
docker.registryDocker registry used to pull respective imagesstashed
docker.imageDocker image used to backup/restore MongoDB databasestash-mongodb
docker.tagTag of the image that is used to backup/restore MongoDB database. This is usually same as the database version it can backup.4.2.3
backup.mgArgsOptional arguments to pass to mongodump command during bakcup process
restore.mgArgsOptional arguments to pass to mongorestore command during restore process

Specify each parameter using the --set key=value[,key=value] argument to helm install.

For example:

helm install stash-mongodb-4.2.3 appscode/stash-mongodb -n kube-system --set docker.registry=my-registry

Deploy stash-mongodb with OpenTenant

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

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartstash-mongodb is pinned at v4.2.3 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