kubestash-operator
KubeStash, Kubernetes native backup operator by AppsCode
About this chart
KubeStash
KubeStash by AppsCode - KubeStash a successor of Stash by AppsCode is a Kubernetes native disaster recovery tool.
TL;DR;
$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm search repo appscode/kubestash-operator --version=v0.32.0
$ helm upgrade -i kubestash-operator appscode/kubestash-operator -n kubestash --create-namespace --version=v0.32.0
Introduction
This chart deploys KubeStash operator on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.21+
Installing the Chart
To install/upgrade the chart with the release name kubestash-operator:
$ helm upgrade -i kubestash-operator appscode/kubestash-operator -n kubestash --create-namespace --version=v0.32.0
The command deploys KubeStash operator on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall the kubestash-operator:
$ helm uninstall kubestash-operator -n kubestash
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 kubestash-operator chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| nameOverride | Overrides name template | "" |
| fullnameOverride | Overrides fullname template | "" |
| replicaCount | Number of stash operator replicas to create (only 1 is supported) | 1 |
| license | License for the product. Get a license by following the steps from here. Example: helm install appscode/kubestash-operator \ --set-file license=/path/to/license/file or helm install appscode/kubestash-operator \ --set license=<license file content> | "" |
| registryFQDN | Docker registry fqdn used to pull Stash related images. Set this to use docker registry hosted at ${registryFQDN}/${registry}/${image} | ghcr.io |
| taskQueue.enabled | # Enable Task Queue feature maintains a concurrent Queue pool of BackupSessions, # User can provide a predefined number of max concurrent BackupSessions can run at a time. | false |
| taskQueue.maxConcurrentSessions | It'll be applicable only If the EnableTaskQueue=true. It defines the Max concurrent BackupSessions that can run at a time. | 10 |
| operator.registry | Docker registry used to pull operator image | kubestash |
| operator.repository | Name of operator container image | kubestash |
| operator.tag | Operator container image tag | "" |
| operator.resources | Compute Resources required by the operator container | {"requests":{"cpu":"100m"}} |
| operator.securityContext | Security options this container should run with | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}} |
| cleaner.registry | Docker registry used to pull Webhook cleaner image | appscode |
| cleaner.repository | Webhook cleaner container image | kubectl-nonroot |
| cleaner.tag | Webhook cleaner container image tag | "1.34" |
| cleaner.skip | Skip generating cleaner YAML | false |
| cleaner.securityContext | Security options this container should run with | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}} |
| cleaner.nodeSelector | Node labels for pod assignment | {"kubernetes.io/os":"linux"} |
| cleaner.tolerations | Tolerations for pod assignment |
Deploy kubestash-operator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubestash-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 chartkubestash-operator is pinned at v0.32.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