VirtualMachineBlockDeviceAttachment

Scope: Namespaced
Version: v1alpha2

VirtualMachineBlockDeviceAttachment provides a hot plug for attaching a disk to a virtual machine.

  • 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 value

    • spec.blockDeviceRef
      object

      Required value

      Block device that will be connected to the VM as a hot-plug disk.

      • spec.blockDeviceRef.kind
        string

        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
        string

        Name of the block device to attach.

    • spec.virtualMachineName
      string

      Required value

      Virtual machine name the disk or image should be attached to.