Created
January 16, 2024 15:12
-
-
Save mikaelkrief/f6f5ead3abc0fad7e7cdc88056418abf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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