Skip to content

Instantly share code, notes, and snippets.

@antorobin
Created February 6, 2025 10:54
Show Gist options
  • Save antorobin/7c2ec703025be4b812381939bdb2bab2 to your computer and use it in GitHub Desktop.
Save antorobin/7c2ec703025be4b812381939bdb2bab2 to your computer and use it in GitHub Desktop.
Azure Storageclass to create persistent storage with Azure file share
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: storageclass-azurefile
provisioner: file.csi.azure.com
reclaimPolicy: Retain
volumeBindingMode: Immediate
allowVolumeExpansion: true
mountOptions:
- dir_mode=0777
- file_mode=0777
- uid=0
- mfsymlinks
- cache=strict
- actimeo=30
parameters:
skuName: Standard_LRS
storageAccount: <Your-Azure-Storage-Account-Name>
secretName: azure-storage-secret
secretNamespace: default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment