VirtualMachineOperation
Scope: Namespaced
Version: v1alpha2
VirtualMachineOperation resource provides the ability to declaratively manage state changes of virtual machines.
- 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.force
Force the execution of the operation. Applies only for Restart and Stop. In this case, the action on the virtual machine is performed immediately.
- spec.type
Required value
Type is operation over the virtualmachine:
- Start - start the virtualmachine.
- Stop - stop the virtualmachine.
- Restart - restart the virtualmachine.
- Migrate (deprecated) - migrate the virtualmachine.
- Evict - evict the virtualmachine.
Allowed values:
Restart
,Start
,Stop
,Migrate
,Evict
- spec.virtualMachineName
Required value
The name of the virtual machine for which the operation is performed.