VirtualMachineBlockDeviceAttachment
Scope: Namespaced
Version: v1alpha2
VirtualMachineBlockDeviceAttachment provides a hot plug for connecting 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
A block device that will be connected to the VM as a hot Plug disk.
- spec.blockDeviceRef.kind
The type of the block device. Options are:
VirtualDisk
— useVirtualDisk
as the disk. This type is always mounted in RW mode.
Allowed values:
VirtualDisk
- spec.blockDeviceRef.name
The name of block device to attach.
- spec.virtualMachineName
Required value
The name of the virtual machine to which the disk or image should be connected.