Skip to content

Instantly share code, notes, and snippets.

@mikaelkrief
Created January 16, 2024 15:12
Show Gist options
  • Save mikaelkrief/f6f5ead3abc0fad7e7cdc88056418abf to your computer and use it in GitHub Desktop.
Save mikaelkrief/f6f5ead3abc0fad7e7cdc88056418abf to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: file.csi.azure.com
name: azurefile
spec:
capacity:
storage: 5Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
storageClassName: azurefile-csi
csi:
driver: file.csi.azure.com
volumeHandle: nginxshareid # make sure this volumeid is unique for every identical share in the cluster
volumeAttributes:
resourceGroup: rg-app # optional, only set this when storage account is not in the same resource group as node
shareName: share-nginx
nodeStageSecretRef:
name: azure-secret
namespace: myapp
mountOptions:
- dir_mode=0777
- file_mode=0777
- uid=0
- gid=0
- mfsymlinks
- cache=strict
- nosharesock
- nobrl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment