<p>I am using Azure Kubernetes and I have created Persistent Volume, Claims and Storage Class.</p>
<p>I want to deploy pods on the Persistent Volume so we can increase the Volume anytime as per the requirement. Right now our Pods are deployed in the Virtual Machines OS Disk. Since we are using the default Pods deployment on the VM Disk when we run out of the disk space the whole cluster will be destroyed and created again.</p>
<p>Please let me know how can I configure Pods to deploy in Azure (Managed) Disk.</p>
<p>Thanks,
Mrugesh</p>

<p>You don't have to create a Persistent Volume manually, if you want Azure Disk, this can be created dynamically for you.</p>
<p>From <a href="https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/aks/azure-disks-dynamic-pv.md#built-in-storage-classes" rel="nofollow noreferrer">Azure Built-in storage classes</a>:</p>
<blockquote>
<p>The default storage class provisions a standard SSD Azure disk.
Standard storage is backed by Standard SSDs and delivers cost-effective storage while still delivering reliable performance.</p>
</blockquote>
<p>You only have to create the <code>PersistentVolumeClaim</code> with the storage class you want to use, e.g.</p>
<pre><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: azure-managed-disk
spec:
  accessModes:
  - ReadWriteOnce
  storageClassName: default
  resources:
    requests:
      storage: 5Gi
</code></pre>
<p>and then refer to that PVC in your Deployment or Pods.</p>
