【问题标题】:Error mounting azure vhd to kubernetes pod将 azure vhd 安装到 kubernetes pod 时出错
【发布时间】:2017-03-08 21:03:54
【问题描述】:

在 kubernetes v1.4.3 上,我正在尝试使用以下配置将天蓝色磁盘 (vhd) 安装到 pod:

volumes:
- name: "data"
   azureDisk:
     diskURI: "https://testdevk8disks685.blob.core.windows.net/vhds/test-disk-01.vhd"
     diskName: "test-disk-01"

但在创建 pod 时返回以下错误

MountVolume.SetUp failed for volume "kubernetes.io/azure-disk/0a0e1c0f-9b7a-11e6-8cc5-000d3a32f480-data" (spec.Name: "data") pod "0a0e1c0f-9b7a-11e6-8cc5-000d3a32f480" (UID: "0a0e1c0f-9b7a-11e6-8cc5-000d3a32f480") with: mount failed: exit status 32
Mounting arguments: /var/lib/kubelet/plugins/kubernetes.io/azure-disk/mounts/falkonry-dev-k8-ampool-locator-01 /var/lib/kubelet/pods/0a0e1c0f-9b7a-11e6-8cc5-000d3a32f480/volumes/kubernetes.io~azure-disk/data  [bind]
Output: mount: special device /var/lib/kubelet/plugins/kubernetes.io/azure-disk/mounts/test-disk-01 does not exist

【问题讨论】:

    标签: azure kubernetes


    【解决方案1】:

    v1.4.3 中有一个错误是导致此问题的原因。该错误已在 v1.4.7+ 中得到解决。将 kubernetes 集群升级到合适的版本解决了这个问题。

    【讨论】:

      猜你喜欢
      • 2013-08-15
      • 1970-01-01
      • 1970-01-01
      • 2016-07-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-17
      相关资源
      最近更新 更多