amazon-web-services - 位置“默认”的备份存储无效
问题描述
我正在尝试为多个 AWS 区域中的多个集群设置 velero,尽管我使用 Github Actions 并在两个不同的虚拟机中运行备份,但 EKS 集群us-east-1
正在备份没有任何问题,但不是ap-southeast-2
. 下面是我使用的 velero 安装命令,它的安装没有任何问题,但是ap-southeast-2
集群的备份失败并且 pod 日志中的错误低于错误。
velero install \
--provider aws \
--plugins velero/velero-plugin-for-aws:v1.0.1 \
--no-secret \
--bucket $VELERO_BUCKET \
--backup-location-config region=$AWS_REGION \
--snapshot-location-config region=$AWS_REGION
日志:
time="2021-08-02T13:57:30Z" level=info msg="Checking existence of namespace" logSource="pkg/cmd/server/server.go:337" namespace=velero
time="2021-08-02T13:57:30Z" level=info msg="Namespace exists" logSource="pkg/cmd/server/server.go:343" namespace=velero
time="2021-08-02T13:57:33Z" level=info msg="Checking existence of Velero custom resource definitions" logSource="pkg/cmd/server/server.go:372"
time="2021-08-02T13:57:37Z" level=info msg="All Velero custom resource definitions exist" logSource="pkg/cmd/server/server.go:406"
time="2021-08-02T13:57:37Z" level=info msg="Checking that all backup storage locations are valid" logSource="pkg/cmd/server/server.go:413"
An error occurred: some backup storage locations are invalid: backup store for location "default" is invalid: rpc error: code = Unknown desc = AccessDenied: Access Denied
status code: 403, request id: 1HE7G5DSTZ52KTZW, host id: z65l7EaF66KuZmIxYwWiysO2FaSU4udT39HmajfMii0wXxx6V4I3IoQ7RFwGQSPQAJBqCHcTPME=
注意:我有两个存储桶,一个在 us-east-1 中用于该地区的集群,一个在 ap-southeast-1 中用于悉尼地区的集群,两者都是公共的。
解决方案
creds.json
因此,通过在安装 velero 时创建并引用文件来修复它。no-secrets
虽然适用于 us-east-1 但不适用于其他地区。
推荐阅读
- android - 为汽车修改 AOSP ( Android-Source ) 的系统主题
- python - 如何在 python 中使用 pandas 计算 csv 文件中的唯一行数
- wso2 - 超时问题 - http-incoming-1 套接字超时:180000 远程地址:/127.0.0.1:59531
- macos - 如何使用 VIM(buffer) 快速编辑剪贴板内容
- c# - 抽象类和继承类中的接口
- graph - Elm:如何用时间戳绘制线性图
- sql - 如何在pyspark中使用具有相同客户ID的新数据框的值更新一行旧数据框
- c# - 尝试将数据上传到我的数据库时,“列名或提供的值的数量与表定义不匹配”
- ubuntu - 如何在 ubuntu 中构建外部模块?
- c# - .Net core 3.1 worker 服务自包含发布在 vs 2019 中失败