automation-suite
2023.10
false
EKS/AKS 上的 Automation Suite 安装指南
- 概述
- 要求
- 安装
- 安装后
- 迁移和升级
- 监控和警示
- 集群管理
- 特定于产品的配置
- 故障排除
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。
由于“验证失败”错误,Velero 备份失败
修复在 EKS/AKS 上的 Automation Suite 中运行计划备份时发生的“Velero 验证失败”错误。
描述
尝试在 EKS/AKS 上的 Automation Suite 中运行计划的备份时,Velero 可能会返回以下错误:
Phase: FailedValidation
Validation errors: an existing backup storage location was not specified at backup creation time and the server default default does not exist.
Error: BackupStorageLocation.velero.io "default" not found
Phase: FailedValidation
Validation errors: an existing backup storage location was not specified at backup creation time and the server default default does not exist.
Error: BackupStorageLocation.velero.io "default" not found
发生这种情况是因为default-bs1 BackupStorageLocation未在 Velero 配置中标记为默认值。
解决方案
要解决此问题,请执行以下步骤:
-
验证为 Velero 配置的备份存储位置:
kubectl get backupstoragelocations -n velerokubectl get backupstoragelocations -n velero确认“默认值”列是否为空。
-
编辑备份存储位置以设置默认值:
kubectl edit backupstoragelocation default-bs1 -n velerokubectl edit backupstoragelocation default-bs1 -n velero -
在
spec部分下,添加以下行:default: truedefault: true -
保存更改。
-
重新启动 Velero Pod 以应用配置:
kubectl delete pod -n velero --allkubectl delete pod -n velero --all或者,执行滚动重新启动:
kubectl -n velero rollout restart deploy/velerokubectl -n velero rollout restart deploy/velero -
验证修复:
kubectl get backupstoragelocations -n velerokubectl get backupstoragelocations -n velero
确认PHASE为“可用”并且“默认值”列显示为Yes 。