Velero Series Part 2: Installing Velero with Helm
This article was last updated on: July 24, 2024 am
overview
This article installs Velero with Helm 3, only the most basic. And plan to back up YAML (only YAML, not Volume) to Tencent Cloud’s COS (compatible with S3, so it can be achieved through AWS S3 plugin)
Installation required:
- velero
- AWS S3 plugin
Do not install:
- CSI
- VolumeSnapshot
- Restic
Install the CLI
-
Download for your client platform Latest version .
-
To extract the package:
1
tar -xvf <RELEASE-TARBALL-NAME>.tar.gz
-
The binary that will be extracted
velero
Move to one of your own$PATH
Location (For most users.)/usr/local/bin
)。
Volume plug-ins
📝 Notes:
Tencent Cloud’s COS can directly use Velero’s AWS Object Store plugin
Install and configure server components through Helm
1 |
|
Add/update the necessary values by changing the values. Then run:
helm install vmware-tanzu/velero --namespace velero -f values.yaml --generate-name --create-namespace
# 或
helm upgrade --install velero-xxxxxxx vmware-tanzu/velero --namespace velero -f values.yaml
📝Notes:
intact
values.yaml
See here:
helm-charts/values.yaml at main · vmware-tanzu/helm-charts (github.com)
In this scenario, the values that need to be modified are:
initContainers
usevelero-plugin-for-aws
metrics
: (for monitoring)podAnnotations
serviceMonitor
Required for those who have Prometheus Operator installedenabled: true
configuration
provider: aws
bucket
prefix
default
config.s3Url: cos.ap-shanghai.myqcloud.com
(Modified according to the official website of Tencent Cloud:Object Storage Using the AWS S3 SDK to Access COS-Best Practices-Documentation Center-Tencent Cloud-Tencent Cloud (tencent.com))
credentials.secretContents
snapshotsEnabled: false
deployRestic: false
🐾Warning:
If it’s an arm64 architecture (like the Raspberry Pi 4B), then
kubectl
That image also can’t use Bitnami’s, because Bitnami doesn’t have an arm64 image.
Other than thatupgradeCRD
It will also cause the installation to fail on arm64, so disable it first.It could be changed to read as follows:
1
2
3
4
5
6
kubectl:
image:
repository: docker.io/rancher/kubectl
tag: v1.21.9
upgradeCRDs: false