Velero¶
- Website
- Docs
- Helmchart
- Docker hub image
- Supported providers
- Volume snapshots possible
- No native encryption at rest
- 3rd party controllers
- velero-volume-controller
- detects and adds relevant backup annotation to pods with volumes
- Last commit 2022
- velero-pvc-watcher
- detects PVCs with no restic backup and exposes a prometheus metric
- Last commit 2021
- velero-volume-controller
Needs object store provider for backup
Limitations¶
- Remove whitelist for tolerations of PodVolumeBackup Pod
hostPathvolumes are not supported, but thelocal-pathvolume type is supported.- Volumes that are mounted with
subPathare still backed up as a whole, not only the subPath
Install¶
Arch: pamac install velero-bin
Usage¶
Important: A root-level backup bucket needs to exist. Create a bucket:
Manual backup - Warning: always include --from-schedule <SCHEDULE>,
in order to apply the configured esource-policy:
List backups:
Details of backup:
Get name of last backup:
List backupstoragelocations:
List backuprepositories:
List podvolumebackups:
List podVolumes in backup set:
velero backup describe --details -o json manual3 | jq .status.backupVolumes.podVolumeBackups.podVolumeBackupsDetails
Troubleshooting¶
See WARNINGS tab in list:
Show warnings/errors of particular backup:
List backups with warnings:
velero get backup -o json | jq '.items[] | select (.status.warnings != null ) | .metadata.name' | sort
velero get backup -o json | jq -r '.items[] | select (.status.warnings != null ) | .metadata.name' | sort | \
xargs -n 1 velero backup logs | grep -v 'level=info'
Show pod names with warnings:
velero get backup -o json | jq -r '.items[] | select (.status.warnings != null ) | .metadata.name' | sort | \
xargs -n 1 velero backup logs | grep 'level=warning' | \
tr ' ' '\n' | grep '^name=.*,$'
Show velero controller warnings/erros:
Delete backups¶
Delete the backup custom resource only and will not delete any associated data from object/block storage:
Delete the backup resource including all data in object/block storage:
Delete whole backuprepository:
File System Backup¶
- Docs: File System Backup
- local-path-provisioner lacks VolumeSnapshot support
- Re-evaluate velero as backup solution
hostPath volumes are not supported. Local persistent volumes are supported.
Restic/Kopia repository password:
- No way to override restic password: Enable users to set restic repo passwords
- Support changing existing backup repository password
Solution:
Monitoring¶
- Velero comes with a native metrics exporter
- Official Kubernetes/Tanzu/Velero dashboard
- Obsolete: prometheus-velero-exporter
- Example Prometheus Rule to monitor Velero seems bad