DataVolume [datavolumes.cdi.kubevirt.io/v1beta1]
- 描述
- DataVolume is an abstraction on top of PersistentVolumeClaims to allow easy population of those PersistentVolumeClaims with relation to VirtualMachines
- 类型
object- 必填
spec
规格
.spec
- 描述
- DataVolumeSpec defines the DataVolume type specification
- 类型
object
.spec.checkpoints
- 描述
- Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import.
- 类型
array
.spec.checkpoints[]
- 描述
- DataVolumeCheckpoint defines a stage in a warm migration.
- 类型
object- 必填
currentprevious
.spec.pvc
- 描述
- PVC is the PVC specification
- 类型
object
.spec.pvc.accessModes
- 描述
- accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
- 类型
array
.spec.pvc.accessModes[]
- 类型
string
.spec.pvc.dataSource
- 描述
- dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.
- 类型
object- 必填
kindname
.spec.pvc.dataSourceRef
- 描述
- dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified. * While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
- 类型
object- 必填
kindname
.spec.pvc.resources
- 描述
- resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
- 类型
object
.spec.pvc.resources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.pvc.resources.requests
- 描述
- Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.pvc.selector
- 描述
- selector is a label query over volumes to consider for binding.
- 类型
object
.spec.pvc.selector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.pvc.selector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.pvc.selector.matchExpressions[].values
- 描述
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- 类型
array
.spec.pvc.selector.matchExpressions[].values[]
- 类型
string
.spec.pvc.selector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.source
- 描述
- Source is the src of the data for the requested DataVolume
- 类型
object
.spec.source.blank
- 描述
- DataVolumeBlankImage provides the parameters to create a new raw blank image for the PVC
- 类型
object
.spec.source.gcs
- 描述
- DataVolumeSourceGCS provides the parameters to create a Data Volume from an GCS source
- 类型
object- 必填
url
.spec.source.http
- 描述
- DataVolumeSourceHTTP can be either an http or https endpoint, with an optional basic auth user name and password, and an optional configmap containing additional CAs
- 类型
object- 必填
url
.spec.source.http.extraHeaders
- 描述
- ExtraHeaders is a list of strings containing extra headers to include with HTTP transfer requests
- 类型
array
.spec.source.http.extraHeaders[]
- 类型
string
.spec.source.http.secretExtraHeaders
- 描述
- SecretExtraHeaders is a list of Secret references, each containing an extra HTTP header that may include sensitive information
- 类型
array
.spec.source.http.secretExtraHeaders[]
- 类型
string
.spec.source.imageio
- 描述
- DataVolumeSourceImageIO provides the parameters to create a Data Volume from an imageio source
- 类型
object- 必填
diskIdurl
.spec.source.pvc
- 描述
- DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC
- 类型
object- 必填
namenamespace
.spec.source.registry
- 描述
- DataVolumeSourceRegistry provides the parameters to create a Data Volume from an registry source
- 类型
object
.spec.source.registry.platform
- 描述
- Platform describes the minimum runtime requirements of the image
- 类型
object
.spec.source.s3
- 描述
- DataVolumeSourceS3 provides the parameters to create a Data Volume from an S3 source
- 类型
object- 必填
url
.spec.source.snapshot
- 描述
- DataVolumeSourceSnapshot provides the parameters to create a Data Volume from an existing VolumeSnapshot
- 类型
object- 必填
namenamespace
.spec.source.upload
- 描述
- DataVolumeSourceUpload provides the parameters to create a Data Volume by uploading the source
- 类型
object
.spec.source.vddk
- 描述
- DataVolumeSourceVDDK provides the parameters to create a Data Volume from a Vmware source
- 类型
object
.spec.sourceRef
- 描述
- SourceRef is an indirect reference to the source of data for the requested DataVolume
- 类型
object- 必填
kindname
.spec.storage
- 描述
- Storage is the requested storage specification
- 类型
object
.spec.storage.accessModes
- 描述
- AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
- 类型
array
.spec.storage.accessModes[]
- 类型
string
.spec.storage.dataSource
- 描述
- This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field.
- 类型
object- 必填
kindname
.spec.storage.dataSourceRef
- 描述
- Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
- 类型
object- 必填
kindname
.spec.storage.resources
- 描述
- Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
- 类型
object
.spec.storage.resources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.storage.resources.requests
- 描述
- Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.storage.selector
- 描述
- A label query over volumes to consider for binding.
- 类型
object
.spec.storage.selector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.storage.selector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.storage.selector.matchExpressions[].values
- 描述
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- 类型
array
.spec.storage.selector.matchExpressions[].values[]
- 类型
string
.spec.storage.selector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.status
- 描述
- DataVolumeStatus contains the current status of the DataVolume
- 类型
object
.status.conditions
- 类型
array
.status.conditions[]
- 描述
- DataVolumeCondition represents the state of a data volume condition.
- 类型
object- 必填
statustype
API 端点
可用的 API 端点如下:
/apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumesDELETE: delete collection of DataVolumeGET: list objects of kind DataVolumePOST: create a new DataVolume
/apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes/{name}DELETE: delete the specified DataVolumeGET: read the specified DataVolumePATCH: partially update the specified DataVolumePUT: replace the specified DataVolume
/apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes/{name}/statusGET: read status of the specified DataVolumePATCH: partially update status of the specified DataVolumePUT: replace status of the specified DataVolume
/apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes
- HTTP 方法
DELETE- 描述
- delete collection of DataVolume
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind DataVolume
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new DataVolume
- 查询参数
- 请求体参数
- HTTP 响应
/apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes/{name}
- HTTP 方法
DELETE- 描述
- delete the specified DataVolume
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified DataVolume
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified DataVolume
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified DataVolume
- 查询参数
- 请求体参数
- HTTP 响应
/apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes/{name}/status
- HTTP 方法
GET- 描述
- read status of the specified DataVolume
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update status of the specified DataVolume
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace status of the specified DataVolume
- 查询参数
- 请求体参数
- HTTP 响应