prometheus-kubernetes icon indicating copy to clipboard operation
prometheus-kubernetes copied to clipboard

Azure - Grafana+Prometheus deployments fail with "Addition of a managed disk to a VM with blob based disks is not supported."

Open shaharyakir opened this issue 7 years ago • 5 comments

I'm running on Azure with acs-engine.

The deployment script ends successfully, but the pods are not able to start:

Warning FailedMount 15s (x2 over 1m) attachdetach AttachVolume.Attach failed for volume "pvc-f1da4bbd-f6dc-11e7-a367-000d3a1b19fd" : Attach volume "XXX-dynamic-pvc-f1da4bbd-f6dc-11e7-a367-000d3a1b19fd" to instance "k8s-nodepool1-18946821-0" failed with compute.VirtualMachinesClient#CreateOrUpdate: Failure responding to request: StatusCode=409 -- Original Error: autorest/azure: Service returned an error. Status=409 Code="OperationNotAllowed" Message="Addition of a managed disk to a VM with blob based disks is not supported."

shaharyakir avatar Jan 11 '18 14:01 shaharyakir

@shaharyakir I'm not very familiar with Azure, but willing to fix this. acs-engine and Azure Container Service (AKS) are the same now? I remember Azure supporting Kubernetes for quite long time, but only tested AKS recently and it was on preview.

camilb avatar Jan 11 '18 15:01 camilb

no, AKS is the very-limited, Microsoft official implementation.

acs-engine is open source and configurable.

shaharyakir avatar Jan 11 '18 15:01 shaharyakir

Hi, you should be deploying your cluster with managed disks. You would need to create your cluster with this see here.

If you were insistent on using blob-based storage you would need to customise manifests/prometheus/prometheus-k8s.yaml and change the storage class to azure blob.

sjdweb avatar Jan 16 '18 12:01 sjdweb

Ok, will check. Thank you.

shaharyakir avatar Jan 17 '18 08:01 shaharyakir

@sjdweb Works. Thanks!

shaharyakir avatar Jan 17 '18 11:01 shaharyakir