velero-s3-deployment

by RADAR-Base

Helm chartv0.4.3App RELEASE.2024-11-21T17-21-54ZVerified publisher

A Helm chart for Velero S3 deployment, this chart holds resources used by Velero with a deployment to mirror the local object storage to a remote object storage.

About this chart

velero-s3-deployment

A Helm chart for Velero S3 deployment, this chart holds resources used by Velero with a deployment to mirror the local object storage to a remote object storage.

Homepage: https://velero.io

Maintainers

NameEmailUrl
Pim van Nierop[email protected]https://www.thehyve.nl/experts/pim-van-nierop

Source Code

Prerequisites

  • Kubernetes 1.28+
  • Kubectl 1.28+
  • Helm 3.1.0+
  • S3-compatible object storage

Requirements

RepositoryNameVersion
https://radar-base.github.io/radar-helm-chartscommon2.x.x
https://radar-base.github.io/radar-helm-chartsvelero2.30.1

Values

KeyTypeDefaultDescription
objectStorageBackupReplicaCountint1Number of replicas for object storage backup pod, should be 1
mc_image.registrystring"quay.io"Image registry
mc_image.repositorystring"minio/mc"Image repository
mc_image.tagstringnilImage tag (immutable tags are recommended) Overrides the image tag whose default is the chart appVersion.
mc_image.digeststring""Image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
mc_image.pullPolicystring"IfNotPresent"Image pull policy
mc_image.pullSecretslist[]Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace. e.g: pullSecrets: - myRegistryKeySecretName
podSecurityContextobject{}Configure object storage backup pod pods' Security Context
securityContextobject{}Configure object storage backup pod containers' Security Context
networkpolicyobjectcheck values.yamlNetwork policy defines who can access this application and who this applications has access to
local.addressstring"minio.default:9000"Address of local object storage to backup data from
local.accessKeystring"accessKey"Access key of local object storage
local.secretKeystring"secretKey"Secret key of local object storage
local.intermediateBucketNamestring"radar-intermediate-storage"Name of local intermediate data bucket
local.outputBucketNamestring"radar-output-storage"Name of local output data bucket
backup.addressstring"s3.example.com"Address of remote object storage to backup data to
backup.accessKeystring"accessKey"Access key of remote object storage
backup.secretKeystring"secretKey"Secret key of remote object storage
backup.intermediateBucketNamestring"radar-intermediate-storage"Name of remote intermediate data bucket
backup.outputBucketNamestring"radar-output-storage"Name of remote output data bucket
veleroobject{"configuration":{"backupStorageLocation":{"bucket":"radar-base-backups","config":{"region":"eu-central-1","s3ForcePathStyle":"true","s3Url":"https://s3.amazon.com"},"name":"default"},"provider":"aws"},"credentials":{"secretContents":{"cloud":"[default]\naws_access_key_id=accessKey\naws_secret_access_key=secretKey\n"}},"deployRestic":true,"initContainers":[{"image":"velero/velero-plugin-for-aws:v1.5.0","imagePullPolicy":"IfNotPresent","name":"velero-plugin-for-aws","volumeMounts":[{"mountPath":"/target","name":"plugins"}]}],"kubectl":{"image":{"tag":"1.26.14-debian-11-r6"}},"metrics":{"enabled":true,"serviceMonitor":{"enabled":true}},"restic":{"podVolumePath":"/var/lib/kubelet/pods","privileged":false},"schedules":{"backup":{"schedule":"0 3 * * *","template":{"includeClusterResources":true,"includedNamespaces":["cert-manager","default","graylog","kubernetes-dashboard","monitoring","velero"],"snapshotVolumes":false,"ttl":"240h"}}},"snapshotsEnabled":false}--
velero.initContainerslistcheck values.yamlAdd plugins to enable using different storage systems, AWS plugin is needed to be able to push to S3-compatible object storages
velero.metrics.enabledbooltrueEnable monitoring metrics to be collected
velero.metrics.serviceMonitor.enabledbooltrueEnable prometheus-operator interface
velero.configuration.providerstring"aws"Cloud provider being used (e.g. aws, azure, gcp).
velero.configuration.backupStorageLocationobjectCheck belowParameters for the default BackupStorageLocation. See https://velero.io/docs/v1.0.0/api-types/backupstoragelocation/
velero.configuration.backupStorageLocation.namestring"default"Cloud provider where backups should be stored. Usually should match configuration.provider. Required.
velero.configuration.backupStorageLocation.bucketstring"radar-base-backups"Bucket to store backups in. Required.
velero.configuration.backupStorageLocation.configobjectCheck values.yamlAdditional provider-specific configuration. See link above for details of required/optional fields for your provider.
velero.credentials.secretContents.cloudstringCheck values.yamlCheck
velero.snapshotsEnabledboolfalseDon't snapshot volumes where they're not supported
velero.deployResticbooltrueDeploy restic to backup Kubernetes volumes
velero.restic.podVolumePathstring"/var/lib/kubelet/pods"Path to find pod volumes
velero.restic.privilegedboolfalseShouldn't need privilege to backup the volumes
velero.schedules.backup.schedulestring"0 3 * * *"Backup every day at 3:00 AM
velero.schedules.backup.template.ttlstring"240h"Keep backup for 10 days
velero.schedules.backup.template.includeClusterResourcesbooltrueBackup cluster wide resources
velero.schedules.backup.template.snapshotVolumesboolfalseDon't snapshot volumes where they're not supported
velero.schedules.backup.template.includedNamespaceslistCheck values.yamlNamespaces to backup manifests and volumes from

Deploy velero-s3-deployment with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has velero-s3-deployment 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-s3-deployment is pinned at v0.4.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