The functionality of the module might significantly change. Compatibility with future versions is not guaranteed.
NFSStorageClass
Scope: Cluster
Version: v1alpha1
-
specDefines a Kubernetes StorageClass configuration.
-
spec.chmodPermissionschmod rights for PVs subdirectory.
Pattern:
^[0-7]{3,4}$
-
spec.connection
Required value
Defines a Kubernetes StorageClass configuration.-
spec.connection.host
Required value
NFS server host.Minimal length:
1
-
spec.connection.mtls
This feature is available in SE, SE+, EE, and FE.
Whether to use mTLS — requires TLS to be enabled.
Default:
false
-
spec.connection.nfsVersion
Required value
NFS version.Allowed values:
3
,4.1
,4.2
-
string
Required value
NFS server share path.Minimal length:
1
-
spec.connection.tls
This feature is available in SE, SE+, EE, and FE.
Whether to use TLS for connection.
Default:
false
-
-
spec.mountOptionsStorageClass mount options.
-
spec.mountOptions.mountModeNFS share mount mode.
Allowed values:
hard
,soft
-
spec.mountOptions.readOnlyShare read-only flag.
-
spec.mountOptions.retransmissionsNFS retries before fail.
Allowed values:
1 <= X
-
spec.mountOptions.timeoutNFS server timeout.
Allowed values:
1 <= X
-
-
spec.reclaimPolicy
Required value
The StorageClass’s reclaim policy. Might be:
- Delete (If the Persistent Volume Claim is deleted, deletes the Persistent Volume and its associated storage as well);
- Retain (If the Persistent Volume Claim is deleted, remains the Persistent Volume and its associated storage).
Allowed values:
Delete
,Retain
-
spec.volumeBindingMode
Required value
The StorageClass’s volume binding mode. Might be Immediate or WaitForFirstConsumer.Allowed values:
Immediate
,WaitForFirstConsumer
-
spec.workloadNodes
-
spec.workloadNodes.nodeSelectorNode selector to specify rules for selecting nodes where Persistent Volumes (PVs) created by this StorageClass are allowed to connect. Combines simple label matches and advanced matching expressions. If this parameter is omitted, NFS shares can be mounted on any node in the cluster running the
Linux
OS.-
spec.workloadNodes.nodeSelector.matchExpressionsA list of advanced node selector requirements. Each requirement specifies a key, an operator, and optional values for filtering nodes based on their labels or other fields.
-
spec.workloadNodes.nodeSelector.matchExpressions.key
-
spec.workloadNodes.nodeSelector.matchExpressions.operator
Allowed values:
In
,NotIn
,Exists
,DoesNotExist
-
spec.workloadNodes.nodeSelector.matchExpressions.values
-
-
spec.workloadNodes.nodeSelector.matchLabelsA map of labels that must match exactly with the labels of a node. Nodes that do not match any of the specified labels will be excluded.
-
-
-