VirtualMachineSnapshot
Scope: Namespaced
Version: v1alpha2
VirtualMachineSnapshot provides a resource for creating snapshots 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.keepIPAddress
Required value
KeepIPAddress defines whether to keep the IP address of a virtual machine or not:
Always
: When creating a snapshot, the virtual machine’s IP address will be converted fromAuto
toStatic
and saved.Never
: When creating a snapshot, the virtual machine’s IP address will not be converted.
Default:
"Always"
Allowed values:
Always
,Never
- spec.requiredConsistency
Required value
Create a snapshot of a virtual machine only if it is possible to freeze the machine through the agent.
If set to
true
, the virtual machine snapshot will be created only in the following cases:- When the virtual machine is powered off.
- When the virtual machine has an agent, and the freeze operation was successful.
Default:
true
- spec.virtualMachineName
Required value
Name of the virtual machine to take a snapshot of.
- spec.volumeSnapshotClasses
- spec.volumeSnapshotClasses.storageClassName
Required value
StorageClass name associated with a VolumeSnapshotClass.
- spec.volumeSnapshotClasses.volumeSnapshotClassName
Required value
VolumeSnapshotClass name to use for virtual disk snapshotting.