将azure vhd安装到kubernetes pod时出错

时间:2016-10-26 13:11:57

标签: azure kubernetes

在kubernetes v1.4.3上我试图使用以下配置将azure disk(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

1 个答案:

答案 0 :(得分:0)

v1.4.3中存在一个错误,导致此问题。该错误已在v1.4.7 +中解决。将kubernetes集群升级到适当的版本解决了这个问题。