VirtualMachineBlockDeviceAttachment
Scope: Namespaced
Version: v1alpha2
VirtualMachineBlockDeviceAttachment provides a hot plug for attaching a disk to a virtual machine.
- apiVersion
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
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
- spec
Required value
- spec.blockDeviceRef
Required value
Block device that will be connected to the VM as a hot-plug disk.
- spec.blockDeviceRef.kind
Block device type. Available options:
VirtualDisk
: Use VirtualDisk as the disk. This type is always mounted in RW mode.VirtualImage
: Use VirtualImage as the disk. This type is always mounted in RO mode.ClusterVirtualImage
: Use ClusterVirtualImage as the disk. This type is always mounted in RO mode.
Allowed values:
VirtualDisk
,VirtualImage
,ClusterVirtualImage
- spec.blockDeviceRef.name
Name of the block device to attach.
- spec.virtualMachineName
Required value
Virtual machine name the disk or image should be attached to.