我正在按照this tutorial安装Velero来备份我的集群。
我已经成功地安装了Minio的部署,但我遇到了一个问题,当安装Velero本身。
当我运行该命令时:
velero install \
--provider aws \
--plugins velero/velero-plugin-for-aws:v1.0.0 \
--bucket velero \
--secret-file ./credentials-velero \
--use-volume-snapshots=false \
--backup-location-config region=minio,s3ForcePathStyle="true",s3Url=http://minio.velero.svc:9000我一直收到这个错误:
CustomResourceDefinition/backups.velero.io: attempting to create resource
An error occurred:
Error installing Velero. Use `kubectl logs deploy/velero -n velero` to check the deploy logs: Error creating resource CustomResourceDefinition/backups.velero.io: the server could not find the requested resource当我键入kubectl logs命令时,我得到的结果是:
ubuntu@kubemaster:~$ kubectl logs deploy/velero -n velero
Error from server (NotFound): deployments.apps "velero" not found我是不是错过了什么?
发布于 2021-11-24 09:36:00
在您提到的文章中,您将获取并安装minio 1.1.0版本。
curl -LO https://github.com/heptio/velero/releases/download/v1.1.0/velero-v1.1.0-linux-amd64.tar.gz
tar -C /usr/local/bin -xzvf velero-v1.1.0-linux-amd64.tar.gz
export PATH=$PATH:/usr/local/bin/velero-v1.1.0-linux-amd64/同时在命令--plugins velero/velero-plugin-for-aws:v1.0.0中使用aws plugin
根据Error in creating CRD on openshift 3.11中的comment
你不需要使用外部的
插件,它仍然在树中。请确保您正在使用的Velero版本遵循正确的文档:https://velero.io/docs/v1.1.0/aws-config/
通过打开1.1.0AWS配置的文档,您可以看到velero install命令中没有使用插件参数(顺便说一下,在medium文章中也是如此)。
velero install \
--provider aws \
--bucket $BUCKET \
--secret-file ./credentials-velero \
--backup-location-config region=$REGION \
--snapshot-location-config region=$REGION所以这可能是版本问题。我认为你要么应该使用更新的velero versions,要么按照旧的文档配置没有插件的亚马逊网络服务。
https://stackoverflow.com/questions/70083169
复制相似问题