首页/云/Kubernetes 速查/Velero 备份与恢复思路
集群运维与排障54 条

Velero 备份与恢复思路

集群级备份常见方案是 Velero:备份 API 对象,配合快照或文件级备份处理 PV,恢复时可整命名空间或按资源筛选。

Kubernetes 速查云更新于 2026-10-12

常用命令

常用命令
velero backup create prod-1012 --include-namespaces prod --snapshot-volumes
velero backup get
velero backup describe prod-1012 --details
velero restore create --from-backup prod-1012
前提:对象存储与快照/上传插件就绪;恢复前确认目标集群的 StorageClass 与镜像仓库可访问。

易错点

  • 只备 API 对象不备 PV:恢复后数据卷是空的,业务起不来
  • 从未做过恢复演练:权限、镜像与存储类差异在真实故障时才暴露

数据来源与参考

  • Velero 官方文档 · 备份与恢复流程
​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌