The module lifecycle stage: Generally available version
The module has requirements for installation
Deckhouse Platform installs CRDs but does not remove them when a module is disabled. If you no longer need the created CRDs, delete them.
LocalPathProvisioner
Scope: Cluster
Version: v1alpha1
StorageClass for volumes in a directory on the local disks of the cluster nodes.
The module creates a StorageClass with the name of this object.
-
objectspec
-
array of stringsspec.nodeGroups
Node groups whose nodes can hold the volumes of the StorageClass.
If not set, the StorageClass does not restrict the nodes.
Examples:
nodeGroups: masternodeGroups: worker -
stringspec.path
Required value
Directory on the nodes where the volumes are created.
An absolute path without quotes, backslashes, whitespace and control characters.
Pattern:
^/[^"\\\s\p{Cc}]*$Example:
path: /opt/local-path-provisioner -
stringspec.reclaimPolicy
What happens to a PersistentVolume and its directory after the PersistentVolumeClaim is deleted.
Retain: The PersistentVolume staysReleased, and the data stays in the directory.Delete: The module removes the directory with the data and the PersistentVolume.
A change of the value recreates the StorageClass; existing PersistentVolumes keep the policy they were created with.
Default:
RetainAllowed values:
Retain,Delete
-