创建新备份位置时如何向 Velero 提供 s3 bucket provider 的凭据

How to provide credentials for s3 bucket provider to Velero when creating a new backup-location

Velero 已安装在集群中。在安装时,velero 使用 --secret-file 参数获得了 s3 提供商的凭据,一切正常。

现在我想创建一个新的备份位置,它将使用来自不同 s3 提供商的存储桶。创建备份位置时,我传递给 --config 一对 key/value s3Url=... 但我似乎无法找到一种方法来添加将凭据传递给新的 a3 提供程序的方法。不接受在安装时起作用的 --secret-file 标志。

作为使用新 --storage-location 调用 backup create 时的结果,备份创建失败。

我的问题是如何为 velero 提供一种通过新的 s3 提供商验证自身的方法?甚至可以使用不同于 velero 安装时使用的 s3 提供程序创建新的备份位置吗?

正如 documentation 所说:

Velero only supports a single set of credentials per provider. It's not yet possible to use different credentials for different locations, if they're for the same provider.

所以恐怕目前无法添加新凭据。

据我所知Velero Issue Tracker, they are working on fixing that issue,但它仍然没有得到正确实施。