LVMVolume
local.openebs.io / v1alpha1
apiVersion: local.openebs.io/v1alpha1
kind: LVMVolume
metadata:
name: example
apiVersion
string
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kind
string
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadata
object
spec object required
VolumeInfo defines LVM info
capacity
string required
Capacity of the volume
minLength:
1
ownerNodeID
string required
OwnerNodeID is the Node ID where the volume group is present which is where
the volume has been provisioned.
OwnerNodeID can not be edited after the volume has been provisioned.
minLength:
1qos object
QoS contains VAC realization based on cgroup v2 io controller.
Nil means "no explicit QoS settings applied".
readBPS
string required
readIOPS
string required
writeBPS
string required
writeIOPS
string required
shared
string
Shared specifies whether the volume can be shared among multiple pods.
If it is not set to "yes", then the LVM LocalPV Driver will not allow
the volumes to be mounted by more than one pods.
enum:
yes, no
source
string
Source defines the data source from which the volume should be created.
It can reference either a snapshot or an existing volume.
If not specified, a standard LVM volume will be created.
If specified, the new volume will be created using the defined data source.
thinProvision
string
ThinProvision specifies whether logical volumes can be thinly provisioned.
If it is set to "yes", then the LVM LocalPV Driver will create
thinProvision i.e. logical volumes that are larger than the available extents.
enum:
yes, no
vgPattern
string required
VgPattern specifies the regex to choose volume groups where volume
needs to be created.
volGroup
string required
VolGroup specifies the name of the volume group where the volume has been created.
status object
VolStatus string that specifies the current state of the volume provisioning request.
error object
Error denotes the error occurred during provisioning/expanding a volume.
Error field should only be set when State becomes Failed.
code
string
VolumeErrorCode represents the error code to represent
specific class of errors.
message
string
state
string
State specifies the current state of the volume provisioning request.
The state "Pending" means that the volume creation request has not
processed yet. The state "Ready" means that the volume has been created
and it is ready for the use. "Failed" means that volume provisioning
has been failed and will not be retried by node agent controller.
enum:
Pending, Ready, FailedNo matches. Try .spec.capacity for an exact path