AKS Storage

A brief overview of persistent storage options for AKS. This is my personal quick reference to explain how storage works, which options there are and links to further documentation.

StorageClasses - description of available classes of storage. They can have different properties like disk storage or blob storage.

kubectl get storageclasses

List available storage classes

PersitentVolumeClaims - a users request for storage

kubectl get persistentvolumeclaims

List persistent volume claims

PersistentVolumes - representation of provisioned storage in a cluster

kubectl get persistentvolumes

Source code for csi drivers:
https://github.com/kubernetes-sigs/azuredisk-csi-driver
https://github.com/kubernetes-sigs/blob-csi-driver
https://github.com/Azure/secrets-store-csi-driver-provider-azure

Best practices and choosing the right storage
https://learn.microsoft.com/en-us/azure/aks/operator-best-practices-storage

Script to deploy a sample application with persistent storage