The functionality of the module might significantly change. Compatibility with future versions is not guaranteed.
NFSStorageClass
Scope: Cluster
Version: v1alpha1
NFSStorageClass is a Kubernetes Custom Resource that defines a configuration for a Kubernetes Storage class.
-
specDefines a Kubernetes Storage class configuration.
-
spec.chmodPermissionschmod rights for PVs subdirectory
Pattern:
^[0-7]{3,4}$
-
spec.connection
Required value
Defines a Kubernetes Storage class configuration.-
spec.connection.host
Required value
NFS server hostMinimal length:
1
-
spec.connection.nfsVersion
Required value
NFS server versionAllowed values:
3
,4.1
,4.2
-
string
Required value
NFS server share pathMinimal length:
1
-
-
spec.mountOptionsStorage class 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 storage class’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 storage class’s volume binding mode. Might be Immediate or WaitForFirstConsumerAllowed values:
Immediate
,WaitForFirstConsumer
-