How to setup Azure Container Storage pool using pre-provisioned azure managed disks?

Roman Skolin (Admin) 0 Reputation points
2025-02-28T10:27:13.6533333+00:00

I enabled Azure Container Storage in my cluster a couple of days ago using the azureDisks type. The default Azure Container Storage pool was configured and mapped to dynamically provisioned disks.

Now, I am trying to create a pre-provisioned storage pool using existing Azure-managed disks, following the official documentation: Create a pre-provisioned storage pool.

My AKS cluster has all the necessary roles to access my disks (Microsoft.Compute/disks/read).

After applying the given configuration from the documentation:

yaml Copy Edit apiVersion: containerstorage.azure.com/v1 kind: StoragePool metadata: name: sp-preprovisioned namespace: acstor spec: poolType: azureDisk: disks: - reference: /subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/RG-QDRANT/providers/Microsoft.Compute/disks/disk0 - reference: /subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/RG-QDRANT/providers/Microsoft.Compute/disks/disk1 the new storage pool is created, but the rest of the setup (PV, PVC, and StorageClass) is not properly created. In AKS, I can see my new storage pool, but it has 0 capacity and an "Unknown" status.

I tried reinstalling the Container Storage extension in AKS, but that did not help.

Is there anything else I need to do to create a new storage pool from existing disks in my Azure subscription?

Br

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,293 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.