将新卷附加到持久卷声明 (Kubernetes)

Attaching New Volume to Persistent Volume Claim (Kubernetes)

一直在为我的 Kubernetes 集群制定灾难恢复计划,我能够制作我的托管磁盘的快照,但我不确定如何将恢复的管理器磁盘绑定到现有的卷 cliam,以便我可以重新补充我的数据丢失后的数据。

您可以挂载任何磁盘manually as a volume in a POD to recover data. Better approach would be to use Velero以进行k8s配置备份。它将保存磁盘和 PVC 信息,并且应该可以顺利恢复卷声明。

此外,您是否查看过 AzureCSI drivers? That's the hot stuff in AKS right now. It does support Volume snapshotting and recovery from within the cluster. Best practice still would be to use Velero for configuration 尽可能使用 CSI 进行备份。