...
| Code Block |
|---|
cat >credentials-velero <<EOF [default] aws_access_key_id = T6uyCVYwgIJe9ZWC7fDQ wsaws_secret_access_key = ********************** EOF |
...
| Code Block |
|---|
velero install \
--provider aws \
--image registry.cn-hangzhou.aliyuncs.com/zhengyu1992/velero:v1.9.3 \
--plugins registry.cn-hangzhou.aliyuncs.com/zhengyu1992/velero-plugin-for-aws:v1.2.1 \
--namespace velero \
--bucket velero \
--use-volume-snapshots=false \
--secret-file ./credentials-velero \
--default-volumes-to-restic \
--use-restic \
--backup-location-config region=minio,s3ForcePathStyle="true",s3Url=http://10.10.21.48:9000minio-headless.mid \
--wait |
卸载velero
| Code Block |
|---|
kubectl delete namespace/velero clusterrolebinding/velero kubectl delete crds -l component=velerovelero uninstall |
迁移storageclass,我们的目的是将nfs-storage中的数据迁移到rook-ceph-block
...