stash-elasticsearch
stash-elasticsearch - Elasticsearch database backup and restore plugin for Stash by AppsCode
About this chart
stash-elasticserach
stash-elasticsearch - Elasticsearch 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-elasticsearch-7.3.2 appscode/stash-elasticsearch -n kube-system --version=7.3.2
Introduction
This chart installs necessary Function and Task definition to backup or restore Elasticsearch database 7.3.2 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-elasticsearch-7.3.2run the following command,
helm install stash-elasticsearch-7.3.2 appscode/stash-elasticsearch -n kube-system --version=7.3.2
The above commands installs Functions and Task crds that are necessary to backup Elasticsearch database 7.3.2 using Stash.
Uninstalling the Chart
To uninstall/delete the stash-elasticsearch-7.3.2 run the following command,
helm uninstall stash-elasticsearch-7.3.2 -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-elasticsearch chart and their default values.
| Parameter | Description | Default |
|---|---|---|
docker.registry | Docker registry used to pull respective images | stashed |
docker.image | Docker image used to backup/restore PosegreSQL database | stash-elasticsearch |
docker.tag | Tag of the image that is used to backup/restore Elasticsearch database. This is usually same as the database version it can backup. | 7.3.2 |
backup.esArgs | Optional arguments to pass to multielasticdump command during backup process | |
restore.esArgs | Optional arguments to pass to multielasticdump command during restore process |
Specify each parameter using the --set key=value[,key=value] argument to helm install.
For example:
helm install stash-elasticsearch-7.3.2 appscode/stash-elasticsearch -n kube-system --set docker.registry=my-registry
Deploy stash-elasticsearch with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has stash-elasticsearch 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 chartstash-elasticsearch is pinned at v7.3.2 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