Microsoft Azure with Kubernetes and Helm "The maximum number of data disks allowed to be attached to a VM of this size is 4."

8/20/2017

I'm trying to run different helm charts and I keep running into this error. It's much more cost effective for me to run 3-4 cheaper nodes than 1 or 2 very expensive nodes that can have more disks attached to them.

Is there a way to configure kubernetes or helm to have a disk attach limit or to set the affinity of one deployment to a particular node?

It's very frustrating that all the deployments try to attach to one node and then run out of disk attach quota.

Here is the error:

Service returned an error. Status=409 Code="OperationNotAllowed" Message="The maximum number of data disks allowed to be attached to a VM of this size is 4."

-- malk0lm
azure
kubernetes
kubernetes-helm
vhd

1 Answer

8/21/2017

Is there a way to configure kubernetes or helm to have a disk attach limit or to set the affinity of one deployment to a particular node?

For now, ACS k8s provision PVC based on Azure managed disks or blob disks, so the limit is the number of VM disks.

For now, Azure does not support change the limit about number of VM disks. About VM size and max data disks, we can find the limit here: enter image description here

More information about limit, please refer to this link.

By the way, the disk maximum capacity is 2TB, maybe we can extend it to 2TB.

-- Jason Ye
Source: StackOverflow