azure - 如何将 Blob 快照还原到托管磁盘
问题描述
我目前正在从 ACS 迁移到 AKS。
我可以对现有存储 Blob 进行快照,并将它们还原到 Azure 中任何位置的不同存储 Blob。
到目前为止,我看不到任何有效的方法来将 blob 快照还原到托管磁盘(这是 AKS 中的强制存储)。
自从命令以来,这样做的皇家方式是什么
az storage blob copy start --destination-blob $destinationVHDFileName --destination-container $storageContainerName --account-name $storageAccountName --account-key $storageAccountKey --source-uri $sas
不适用于磁盘?
解决方案
从 Azure Container Service (ACS) 迁移到 Azure Kubernetes Service (AKS),正如评论所暗示的,您可以查看文档。
对于磁盘迁移,我认为磁盘应该是持久卷磁盘,您可以对磁盘进行快照并从快照创建一个新磁盘作为 AKS 中的持久卷。在 AKS 中将磁盘添加为持久卷,您可以按照在 Azure Kubernetes 服务 (AKS) 中手动创建和使用带有 Azure 磁盘的卷中的步骤进行操作。
此外,您需要停止对应用程序的写入并关闭它。否则它会丢失迁移中的数据。迁移后检查应用程序是否按预期工作。
推荐阅读
- java - 如何在不使用 Java 中的第二个变量的情况下将存储数值的 char x 转换为 double 值?
- python - 计算整个数据框的年差
- mocking - 我可以使用 Prism 作为有状态的模拟服务器来进行 Terraform 的验收测试吗?
- excel - VBA Excel 动态 HTML 代码 - 抓取硒
- python - Python 找不到本地模块
- google-apps-script - 如果网站已在另一个浏览器选项卡中打开,则使用 Google 应用脚本防止用户在表格中打开 url 链接
- javascript - 如何根据值过滤对象数组
- python - 内核在地理 tiff 图像上死于 rasterio.open().read()
- prolog - 如何编写序言程序以在给定范围之间打印?
- winforms - C++/CLI Winform - 是否可以有多个文本框的 1 个事件处理程序