Skip to content

Commit 99aa262

Browse files
authored
Merge pull request #61831 from lpettyjo/OSDOCS-6633
OSDOCS#6633 - Add NFS support for Azure File CSI driver
2 parents e98f2b0 + 1226e9a commit 99aa262

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * storage/container_storage_interface/persistent_storage-csi-azure-file.adoc
4+
//
5+
6+
:_content-type: CONCEPT
7+
[id="persistent-storage-csi-azure-file-nfs_{context}"]
8+
= NFS support
9+
10+
{product-title} 4.14, and later, supports Azure File Container Storage Interface (CSI) Driver Operator with Network File System (NFS) with the following caveats:
11+
12+
* Creating pods with Azure File NFS volumes that are scheduled to the control plane node causes the mount to be denied.
13+
+
14+
To work around this issue: If your control plane nodes are schedulable, and the pods can run on worker nodes, use `nodeSelector` or Affinity to schedule the pod in worker nodes.
15+
16+
* FS Group policy behavior:
17+
+
18+
[IMPORTANT]
19+
=====
20+
Azure File CSI with NFS does not honor the fsGroupChangePolicy requested by pods. Azure File CSI with NFS applies a default OnRootMismatch FS Group policy regardless of the policy requested by the pod.
21+
=====
22+
* The Azure File CSI Operator does not automatically create a storage class for NFS. You must create it manually. Use a file similar to the following:
23+
+
24+
[source, yaml]
25+
----
26+
apiVersion: storage.k8s.io/v1
27+
kind: StorageClass
28+
metadata:
29+
name: <storage-class-name> <1>
30+
provisioner: file.csi.azure.com <2>
31+
parameters:
32+
protocol: nfs <3>
33+
skuName: Premium_LRS # available values: Premium_LRS, Premium_ZRS
34+
mountOptions:
35+
- nconnect=4
36+
----
37+
<1> Storage class name.
38+
<2> Specifies the Azure File CSI provider.
39+
<3> Specifies NFS as the storage backend protocol.

storage/container_storage_interface/persistent-storage-csi-azure-file.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ Azure File CSI Driver Operator does not support:
2121

2222
* Virtual hard disks (VHD)
2323

24-
* Network File System (NFS): {product-title} does not deploy a NFS-backed storage class.
25-
26-
* Running on nodes with FIPS mode enabled.
24+
* Running on nodes with Federal Information Processing Standard (FIPS) mode enabled for Server Message Block (SMB) file share. However, Network File System (NFS) does support FIPS mode.
2725

2826
For more information about supported features, see xref:../../storage/container_storage_interface/persistent-storage-csi.adoc#csi-drivers-supported_persistent-storage-csi[Supported CSI drivers and features].
2927

28+
include::modules/persistent-storage-csi-azure-file-nfs.adoc[leveloffset=+1]
29+
3030
include::modules/persistent-storage-csi-about.adoc[leveloffset=+1]
3131

3232
[role="_additional-resources"]

0 commit comments

Comments
 (0)