The functionality of the module might change, but the main features will remain. Compatibility with future versions is guaranteed, but might require additional migration steps.
LocalStorageClass
Scope: Cluster
Version: v1alpha1
LocalStorageClass is a Kubernetes Custom Resource that defines a configuration for a Kubernetes Storage class.
-
specDefines a Kubernetes Storage class configuration.
-
spec.lvm
Required value
The field provides a LVM configuration.-
spec.lvm.lvmVolumeGroups
Required value
LVMVolumeGroup resources where Persistent Volume will be create on.-
spec.lvm.lvmVolumeGroups.nameThe LVMVolumeGroup resource’s name.
-
spec.lvm.lvmVolumeGroups.thinThin pool in a LVMVolumeGroup resource.
-
spec.lvm.lvmVolumeGroups.thin.poolName
Required value
The name of the thin pool.Minimal length:
1
Pattern:
^.*$
-
-
-
spec.lvm.thickSettings for Logical Volumes in a LVMVolumeGroup resource.
-
spec.lvm.thick.contiguousIf true, the Logical Volume will be created with the contiguous flag. Note: This flag should be used with caution because it may lead to poor scheduling of pods using the Persistent Volume. Our scheduler checks the free space in VG and selects nodes with the most free space for pods. However, it cannot determine the maximum amount of sequential free space available. Consequently, there may be situations where a pod is scheduled to a node, but the volume cannot be created due to insufficient contiguous free space. If such a situation arises, manual intervention will be required.
-
-
spec.lvm.type
Required value
The provisioning type of the LVM Logical Volumes (LV) created for Persistent Volumes (PV).Allowed values:
Thick
,Thin
-
-
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 binding mode. Might be:
- Immediate (creates a PV as a PVC requested)
- WaitForFirstConsumer (creates a PV after a Pod consumes PVC)
Allowed values:
Immediate
,WaitForFirstConsumer
-