Skip to content

Commit

Permalink
Merge pull request #1220 from kubernetes-sigs/add-nfs-nconnect-option
Browse files Browse the repository at this point in the history
doc: add nconnect mount options in NFSv4.1 example
  • Loading branch information
andyzhangx authored Apr 15, 2023
2 parents 79be35e + c1edbbf commit df33325
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions deploy/example/nfs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ provisioner: file.csi.azure.com
parameters:
protocol: nfs
skuName: Premium_LRS # available values: Premium_LRS, Premium_ZRS
mountOptions:
- nconnect=4
```
run following commands to create a storage class:
Expand Down
2 changes: 2 additions & 0 deletions deploy/example/pv-azurefile-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain # if set as "Delete" file share would be removed in pvc deletion
mountOptions:
- nconnect=4
csi:
driver: file.csi.azure.com
readOnly: false
Expand Down
2 changes: 2 additions & 0 deletions deploy/example/storageclass-azurefile-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ parameters:
reclaimPolicy: Delete
volumeBindingMode: Immediate
allowVolumeExpansion: true
mountOptions:
- nconnect=4
4 changes: 2 additions & 2 deletions test/e2e/dynamic_provisioning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
{
ClaimSize: "100Gi",
MountOptions: []string{
"nconnect=8",
"nconnect=4",
"rsize=1048576",
"wsize=1048576",
},
Expand Down Expand Up @@ -1246,7 +1246,7 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() {
{
ClaimSize: "100Gi",
MountOptions: []string{
"nconnect=8",
"nconnect=4",
"rsize=1048576",
"wsize=1048576",
},
Expand Down

0 comments on commit df33325

Please # to comment.