Модуль находится в процессе активного развития. Функциональность может существенно измениться.
LocalStorageClass
Scope: Cluster
Version: v1alpha1
LocalStorageClass is a Kubernetes Custom Resource that defines a configuration for a Kubernetes Storage class.
-
spec
объект
Defines a Kubernetes Storage class configuration.
-
spec.fileSystem
объект
-
spec.fileSystem.localPath
строка
Обязательный параметр
-
spec.fileSystem.localPath
строка
-
spec.isDefault
булевый
Should this Storage class be used as default.
Note that the default value is false.
По умолчанию:
false
-
spec.lvm
объект
The field provides a LVM configuration.
-
spec.lvm.lvmVolumeGroups
массив объектов
Обязательный параметр
LVMVolumeGroup resources where Persistent Volume will be create on.-
spec.lvm.lvmVolumeGroups.name
строка
The LVMVolumeGroup resource’s name.
-
spec.lvm.lvmVolumeGroups.thin
объект
Thin pool in a LVMVolumeGroup resource.
-
spec.lvm.lvmVolumeGroups.thin.poolName
строка
Обязательный параметр
The name of the thin pool.Минимальная длина:
1
Шаблон:
^.*$
-
spec.lvm.lvmVolumeGroups.thin.poolName
строка
-
spec.lvm.lvmVolumeGroups.name
строка
-
spec.lvm.type
строка
Обязательный параметр
The type of the device.Допустимые значения:
Thick
,Thin
-
spec.lvm.lvmVolumeGroups
массив объектов
-
spec.reclaimPolicy
строка
Обязательный параметр
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)
Допустимые значения:
Delete
,Retain
-
spec.volumeBindingMode
строка
Обязательный параметр
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)
Допустимые значения:
Immediate
,WaitForFirstConsumer
-
spec.fileSystem
объект