Skip to content

Commit 99ed2aa

Browse files
authored
Merge pull request #87923 from heoelri/patch-1
Update howto-create-a-storageclass.md
2 parents f13f48a + ee91d1e commit 99ed2aa

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

articles/openshift/howto-create-a-storageclass.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@ apiVersion: storage.k8s.io/v1
8686
metadata:
8787
name: azure-file
8888
provisioner: kubernetes.io/azure-file
89+
mountOptions:
90+
- dir_mode=0777
91+
- file_mode=0777
92+
- uid=0
93+
- gid=0
94+
- mfsymlinks
95+
- cache=strict
96+
- actimeo=30
97+
- noperm
8998
parameters:
9099
location: $LOCATION
91100
secretNamespace: kube-system
@@ -99,6 +108,17 @@ EOF
99108
oc create -f azure-storageclass-azure-file.yaml
100109
```
101110

111+
Mount options for Azure Files will generally be dependent on the workload that you are deploying and the requirements of the application. Specifically for Azure files, there are additional parameters that you should consider using.
112+
113+
Mandatory parameters:
114+
- "mfsymlinks" to map symlinks to a form the client can use
115+
- "noperm" to disable permission checks on the client side
116+
117+
Recommended parameters:
118+
- "nossharesock" to disable reusing sockets if the client is already connected via an existing mount point
119+
- "actimeo=30" (or higher) to increase the time the CIFS client caches file and directory attributes
120+
- "nobrl" to disable sending byte range lock requests to the server and for applications which have challenges with posix locks
121+
102122
## Change the default StorageClass (optional)
103123

104124
The default StorageClass on ARO is called managed-premium and uses the azure-disk provisioner. Change this by issuing patch commands against the StorageClass manifests.

0 commit comments

Comments
 (0)