Created
February 6, 2025 10:54
-
-
Save antorobin/7c2ec703025be4b812381939bdb2bab2 to your computer and use it in GitHub Desktop.
Azure Storageclass to create persistent storage with Azure file share
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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