VirtualMachineOperation

Scope: Namespaced
Version: v1alpha2

VirtualMachineOperation enables declarative management of virtual machine state changes.

  • 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.force
      boolean

      Force execution of an operation. Applies only to the Restart and Stop operations. In this case, the operation on a virtual machine is performed immediately.

    • spec.type
      string

      Required value

      Type of the operation to execute on a virtual machine:

      • Start: Start the virtual machine.
      • Stop: Stop the virtual machine.
      • Restart: Restart the virtual machine.
      • Migrate (deprecated): Migrate the virtual machine to another node where it can be started.
      • Evict: Migrate the virtual machine to another node where it can be started.

      Allowed values: Restart, Start, Stop, Migrate, Evict

    • spec.virtualMachineName
      string

      Required value

      Name of the virtual machine the operation is performed for.