简体   繁体   English

Velero 部署失败 - 找不到 Azure /credentials/cloud 文件

[英]Velero deployments failure - Unable to find Azure /credentials/cloud File

Deployment Logs::部署日志::

An error occurred: some backup storage locations are invalid: error getting backup store for location "default": rpc error: code = Unknown desc = error loading environment from AZURE_CREDENTIALS_FILE (/credentials/cloud): open /credentials/cloud: no such file or directory发生错误:某些备份存储位置无效:获取位置“默认”的备份存储时出错:rpc 错误:代码 = 未知 desc = 错误从 AZURE_CREDENTIALS_FILE (/credentials/cloud) 加载环境:打开 /credentials/cloud:没有这样的文件或目录

Installed velero following https://velero.io/docs/v1.1.0/azure-config/https://velero.io/docs/v1.1.0/azure-config/ 之后安装 velero

Installed velero with安装 velero

velero install \
    --provider azure \
    --bucket $BLOB_CONTAINER \
    --secret-file ./credentials-velero \

as the error says cannot find the path of the file, changed my approach on specifying the required as environment secrets than specified in documents as here由于错误说找不到文件的路径,因此更改了我将所需的指定为环境机密的方法,而不是在文档中指定的方法,如下所示

env: - name: SECRET_USERNAME valueFrom: secretKeyRef: name: mysecret key: username env: - name: SECRET_USERNAME valueFrom: secretKeyRef: name: mysecret key: username

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM