简体   繁体   English

将azure vhd安装到kubernetes pod时出错

[英]Error mounting azure vhd to kubernetes pod

On kubernetes v1.4.3 I'm trying to mount the azure disk (vhd) to a pod using following configuration: 在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"

But it returns following error while creating pod 但是在创建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

There was a bug in v1.4.3 which was the cause of this problem. v1.4.3中存在一个错误,这是导致此问题的原因。 The bug has been solved in v1.4.7+. 该错误已在v1.4.7 +中解决。 Upgrading the kubernetes cluster to appropriate version solved the problem. 将kubernetes集群升级到适当的版本解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM