velero

by joaquinito2051

Helm chartv2.0.1App 1.0.0

A Helm chart for velero

About this chart

Velero-server

This helm chart installs Velero version v1.0.0 https://github.com/heptio/velero/tree/v1.0.0

Upgrading to v1.0.0

As of v1.0.0, Heptio Velero is no longer backwards-compatible with Heptio Ark.

The instructions found here will assist you in upgrading from version v0.11.0 to v1.0.0

Upgrading to v0.11.0

As of v0.11.0, Heptio Ark has become Velero.

The instructions found here will assist you in upgrading from Ark to Velero

Prerequisites

Secret for cloud provider credentials

Velero server needs an IAM service account in order to run, if you don't have it you must create it. Please follow the official documentation: https://velero.io/docs/v1.0.0/install-overview/

Don't forget the step to create the secret

kubectl create secret generic cloud-credentials --namespace <VELERO_NAMESPACE> --from-file cloud=credentials-velero

Configuration

Please change the values.yaml according to your setup See here for the official documentation https://velero.io/docs/v1.0.0/install-overview/

Required Parameters

ParameterDescriptionDefaultRequired
configuration.providerThe name of the cloud provider where you are deploying velero to (aws, azure, gcp)noneyes
configuration.backupStorageLocation.nameThe name of the cloud provider that will be used to actually store the backups (aws, azure, gcp)noneyes
configuration.backupStorageLocation.bucketThe storage bucket where backups are to be uploadednoneyes
configuration.backupStorageLocation.config.regionThe cloud provider region (AWS only)noneyes, if using AWS
configuration.backupStorageLocation.config.resourceGroupThe resource group containing the storage account (Azure only)noneyes, if using Azure
configuration.backupStorageLocation.config.storageAccountThe storage account containing the blob container (Azure only)noneyes, if using Azure
configuration.volumeSnapshotLocation.nameThe name of the cloud provider the cluster is using for persistent volumes, if anynoneyes, if using PV snapshots
configuration.volumeSnapshotLocation.config.regionThe cloud provider region (AWS only)noneyes, if using AWS
configuration.volumeSnapshotLocation.config.apitimeoutThe API timeout (Azure only)noneyes, if using Azure
credentials.useSecretWhether a secret should be used for IAM credentials. Set this to false when using kube2iamtrueyes
credentials.existingSecretIf specified and useSecret is true, uses an existing secret with this name instead of creating onenoneyes, if useSecret is true and secretContents is empty
credentials.secretContentsIf specified and useSecret is true, contents for the credentials secretnoneyes, if useSecret is true and existingSecret is empty

All Parameters

ParameterDescriptionDefault
image.repositoryImage repositorygcr.io/heptio-images/velero
image.tagImage tagv1.0.0
image.pullPolicyImage pull policyIfNotPresent
podAnnotationsAnnotations for the Velero server pod{}
rbac.createIf true, create and use RBAC resourcestrue
rbac.server.serviceAccount.createWhether a new service account name that the server will use should be createdtrue
rbac.server.serviceAccount.nameService account to be used for the server. If not set and rbac.server.serviceAccount.create is true a name is generated using the fullname template``
resourcesResource requests and limits{}
initContainersInitContainers and their specs to start with the deployment pod[]
tolerationsList of node taints to tolerate[]
nodeSelectorNode labels for pod assignment{}
configuration.backupStorageLocation.nameThe name of the cloud provider that will be used to actually store the backups (aws, azure, gcp)``
configuration.backupStorageLocation.bucketThe storage bucket where backups are to be uploaded``
configuration.backupStorageLocation.config.regionThe cloud provider region (AWS only)``
configuration.backupStorageLocation.config.s3ForcePathStyleSet to true for a local storage service like Minio``
configuration.backupStorageLocation.config.s3UrlS3 url (primarily used for local storage services like Minio)``
configuration.backupStorageLocation.config.kmsKeyIdKMS key for encryption (AWS only)``
configuration.backupStorageLocation.config.resourceGroupThe resource group containing the storage account (Azure only)``
configuration.backupStorageLocation.config.storageAccountThe storage account containing the blob container (Azure only)``
configuration.backupStorageLocation.prefixThe directory inside a storage bucket where backups are to be uploaded``
configuration.backupSyncPeriodHow frequently Velero queries the object storage to make sure that the appropriate Backup resources have been created for existing backup files(uses velero server default)
configuration.extraEnvVarsKey/values for extra environment variables such as AWS_CLUSTER_NAME, etc{}
configuration.providerThe name of the cloud provider where you are deploying velero to (aws, azure, gcp)
configuration.restoreResourcePrioritiesAn ordered list that describes the order in which Kubernetes resource objects should be restored(uses velero server default)
configuration.resticTimeoutHow long backups/restores of pod volumes should be allowed to run before timing out.(uses velero server default)
configuration.restoreOnlyModeWhen RestoreOnly mode is on, functionality for backups, schedules, and expired backup deletion is turned off. Restores are made from existing backup files in object storage(uses velero server default)
configuration.volumeSnapshotLocation.nameThe name of the cloud provider the cluster is using for persistent volumes, if any{}
configuration.volumeSnapshotLocation.config.regionThe cloud provider region (AWS only)``
configuration.volumeSnapshotLocation.config.apitimeoutThe API timeout (azure only)
configuration.volumeSnapshotLocation.config.resourceGroupThe name of the resource group where volume snapshots should be stored, if different from the cluster’s resource group. (Azure only)
credentials.existingSecretIf specified and useSecret is true, uses an existing secret with this name instead of creating one``
credentials.useSecretWhether a secret should be used. Set this to false when using kube2iamtrue
credentials.secretContentsContents for the credentials secret{}
deployResticIf true, enable restic deploymentfalse
metrics.enabledSet this to true to enable exporting Prometheus monitoring metricsfalse
metrics.scrapeIntervalScrape interval for the Prometheus ServiceMonitor30s
metrics.serviceMonitor.enabledSet this to true to create ServiceMonitor for Prometheus operatorfalse
metrics.serviceMonitor.additionalLabelsAdditional labels that can be used so ServiceMonitor will be discovered by Prometheus{}
schedulesA dict of schedules{}

How to

helm install --name velero --namespace velero ./velero

helm install --name velero --namespace velero ./velero

Remove heptio/velero

Remember that when you remove Velero all backups remain untouched

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.

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