velero
by Helm
A Helm chart for velero
About this chart
Velero
Velero is an open source tool to safely backup and restore, perform disaster recovery, and migrate Kubernetes cluster resources and persistent volumes.
Velero has two main components: a CLI, and a server-side Kubernetes deployment.
Installing the Velero CLI
See the different options for installing the Velero CLI.
Installing the Velero server
Installation Requirements
Kubernetes v1.16+, because this helm chart uses CustomResourceDefinition apiextensions.k8s.io/v1. This API version was introduced in Kubernetes v1.16.
Velero version
This helm chart installs Velero version v1.6 https://velero.io/docs/v1.6/. See the #Upgrading section for information on how to upgrade from other versions.
Provider credentials
When installing using the Helm chart, the provider's credential information will need to be appended into your values. The easiest way to do this is with the --set-file argument, available in Helm 2.10 and higher. See your cloud provider's documentation for the contents and creation of the credentials-velero file.
Installing
The default configuration values for this chart are listed in values.yaml.
See Velero's full official documentation. More specifically, find your provider in the Velero list of supported providers for specific configuration information and examples.
Set up Helm
See the main README.md.
Using Helm 3
Option 1) CLI commands
Note: You may add the flag --set cleanUpCRDs=true if you want to delete the Velero CRDs after deleting a release.
Please note that cleaning up CRDs will also delete any CRD instance, such as BackupStorageLocation and VolumeSnapshotLocation, which would have to be reconfigured when reinstalling Velero. The backup data in object storage will not be deleted, even though the backup instances in the cluster will.
Specify the necessary values using the --set key=value[,key=value] argument to helm install. For example,
helm install velero vmware-tanzu/velero \
--namespace <YOUR NAMESPACE> \
--create-namespace \
--set-file credentials.secretContents.cloud=<FULL PATH TO FILE> \
--set configuration.provider=<PROVIDER NAME> \
--set configuration.backupStorageLocation.name=<BACKUP STORAGE LOCATION NAME> \
--set configuration.backupStorageLocation.bucket=<BUCKET NAME> \
--set configuration.backupStorageLocation.config.region=<REGION> \
--set configuration.volumeSnapshotLocation.name=<VOLUME SNAPSHOT LOCATION NAME> \
--set configuration.volumeSnapshotLocation.config.region=<REGION> \
--set initContainers[0].name=velero-plugin-for-<PROVIDER NAME> \
--set initContainers[0].image=velero/velero-plugin-for-<PROVIDER NAME>:<PROVIDER PLUGIN TAG> \
--set initContainers[0].volumeMounts[0].mountPath=/target \
--set initContainers[0].volumeMounts[0].name=plugins
Users of zsh might need to put quotes around key/value pairs.
Option 2) YAML file
Add/update the necessary values by changing the values.yaml from this repository, then run:
helm install vmware-tanzu/velero --namespace <YOUR NAMESPACE> -f values.yaml --generate-name
Upgrade the configuration
If a value needs to be added or changed, you may do so with the upgrade command. An example:
helm upgrade vmware-tanzu/velero <RELEASE NAME> --namespace <YOUR NAMESPACE> --reuse-values --set configuration.provider=<NEW PROVIDER>
Using Helm 2
We're no longer support Helm v2 since it's deprecated in November 2020.
Upgrade the configuration
If a value needs to be added or changed, you may do so with the upgrade command. An example:
helm upgrade vmware-tanzu/velero <RELEASE NAME> --reuse-values --set configuration.provider=<NEW PROVIDER>
Upgrading
Upgrading to v1.6
The instructions found here will assist you in upgrading from version v1.5.x to v1.6.
Upgrading to v1.5
The instructions found here will assist you in upgrading from version v1.4.x to v1.5.
Upgrading to v1.4
The instructions found here will assist you in upgrading from version v1.3.x to v1.4.
Upgrading to v1.3.1
The instructions found here will assist you in upgrading from version v1.2.0 or v1.3.0 to v1.3.1.
Upgrading to v1.2.0
The instructions found here will assist you in upgrading from version v1.0.0 or v1.1.0 to v1.2.0.
Upgrading to v1.1.0
The instructions found here will assist you in upgrading from version v1.0.0 to v1.1.0.
Uninstall Velero
Note: when you uninstall the Velero server, all backups remain untouched.
Using Helm 3
helm uninstall <RELEASE NAME> -n <YOUR NAMESPACE>
Deploy velero with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has velero 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 chartvelero is pinned at v2.23.6-bc.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