VirtualMachine [virtualmachines.kubevirt.io/v1]

Description
VirtualMachine handles the VirtualMachines that are not running or are in a stopped state The VirtualMachine contains the template to create the VirtualMachineInstance. It also mirrors the running state of the created VirtualMachineInstance in its status.
Type
object
Required
spec

Specification

PropertyTypeDescription
apiVersionstring

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

kindstring

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

metadataObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

specobject

Spec contains the specification of VirtualMachineInstance created

statusobject

Status holds the current state of the controller and brief information about its associated VirtualMachineInstance

.spec

Description
Spec contains the specification of VirtualMachineInstance created
Type
object
Required
template
PropertyTypeDescription
dataVolumeTemplatesarray

dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle.

instancetypeobject

InstancetypeMatcher references a instancetype that is used to fill fields in Template

preferenceobject

PreferenceMatcher references a set of preference that is used to fill fields in Template

runStrategystring

Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running

runningboolean

Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy Deprecated: VirtualMachineInstance field "Running" is now deprecated, please use RunStrategy instead.

templateobject

Template is the direct specification of VirtualMachineInstance

updateVolumesStrategystring

UpdateVolumesStrategy is the strategy to apply on volumes updates

.spec.dataVolumeTemplates

Description
dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle.
Type
array

.spec.dataVolumeTemplates[]

Type
object
Required
spec
PropertyTypeDescription
apiVersionstring

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

kindstring

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

metadataObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

specobject

DataVolumeSpec contains the DataVolume specification.

statusobject

DataVolumeTemplateDummyStatus is here simply for backwards compatibility with a previous API.

.spec.dataVolumeTemplates[].spec

Description
DataVolumeSpec contains the DataVolume specification.
Type
object
PropertyTypeDescription
checkpointsarray

Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import.

contentTypestring

DataVolumeContentType options: "kubevirt", "archive"

finalCheckpointboolean

FinalCheckpoint indicates whether the current DataVolumeCheckpoint is the final checkpoint.

preallocationboolean

Preallocation controls whether storage for DataVolumes should be allocated in advance.

priorityClassNamestring

PriorityClassName for Importer, Cloner and Uploader pod

pvcobject

PVC is the PVC specification

sourceobject

Source is the src of the data for the requested DataVolume

sourceRefobject

SourceRef is an indirect reference to the source of data for the requested DataVolume

storageobject

Storage is the requested storage specification

.spec.dataVolumeTemplates[].spec.checkpoints

Description
Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import.
Type
array

.spec.dataVolumeTemplates[].spec.checkpoints[]

Description
DataVolumeCheckpoint defines a stage in a warm migration.
Type
object
Required
currentprevious
PropertyTypeDescription
currentstring

Current is the identifier of the snapshot created for this checkpoint.

previousstring

Previous is the identifier of the snapshot from the previous checkpoint.

.spec.dataVolumeTemplates[].spec.pvc

Description
PVC is the PVC specification
Type
object
PropertyTypeDescription
accessModesarray

accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1

dataSourceobject

dataSource field can be used to specify either:

  • An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
  • An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.
dataSourceRefobject

dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef:

  • While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects.
  • While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified.
  • While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
resourcesobject

resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

selectorobject

selector is a label query over volumes to consider for binding.

storageClassNamestring

storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1

volumeAttributesClassNamestring

volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).

volumeModestring

volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.

volumeNamestring

volumeName is the binding reference to the PersistentVolume backing this claim.

.spec.dataVolumeTemplates[].spec.pvc.accessModes

Description
accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
Type
array

.spec.dataVolumeTemplates[].spec.pvc.accessModes[]

Type
string

.spec.dataVolumeTemplates[].spec.pvc.dataSource

Description
dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.
Type
object
Required
kindname
PropertyTypeDescription
apiGroupstring

APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.

kindstring

Kind is the type of resource being referenced

namestring

Name is the name of resource being referenced

.spec.dataVolumeTemplates[].spec.pvc.dataSourceRef

Description
dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified. * While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
Type
object
Required
kindname
PropertyTypeDescription
apiGroupstring

APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.

kindstring

Kind is the type of resource being referenced

namestring

Name is the name of resource being referenced

namespacestring

Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.

.spec.dataVolumeTemplates[].spec.pvc.resources

Description
resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
Type
object
PropertyTypeDescription
limitsobject

Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

requestsobject

Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

.spec.dataVolumeTemplates[].spec.pvc.resources.limits

Description
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Type
object

.spec.dataVolumeTemplates[].spec.pvc.resources.requests

Description
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Type
object

.spec.dataVolumeTemplates[].spec.pvc.selector

Description
selector is a label query over volumes to consider for binding.
Type
object
PropertyTypeDescription
matchExpressionsarray

matchExpressions is a list of label selector requirements. The requirements are ANDed.

matchLabelsobject

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

.spec.dataVolumeTemplates[].spec.pvc.selector.matchExpressions

Description
matchExpressions is a list of label selector requirements. The requirements are ANDed.
Type
array

.spec.dataVolumeTemplates[].spec.pvc.selector.matchExpressions[]

Description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

key is the label key that the selector applies to.

operatorstring

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

valuesarray

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

.spec.dataVolumeTemplates[].spec.pvc.selector.matchExpressions[].values

Description
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Type
array

.spec.dataVolumeTemplates[].spec.pvc.selector.matchExpressions[].values[]

Type
string

.spec.dataVolumeTemplates[].spec.pvc.selector.matchLabels

Description
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Type
object

.spec.dataVolumeTemplates[].spec.source

Description
Source is the src of the data for the requested DataVolume
Type
object
PropertyTypeDescription
blankobject

DataVolumeBlankImage provides the parameters to create a new raw blank image for the PVC

gcsobject

DataVolumeSourceGCS provides the parameters to create a Data Volume from an GCS source

httpobject

DataVolumeSourceHTTP can be either an http or https endpoint, with an optional basic auth user name and password, and an optional configmap containing additional CAs

imageioobject

DataVolumeSourceImageIO provides the parameters to create a Data Volume from an imageio source

pvcobject

DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC

registryobject

DataVolumeSourceRegistry provides the parameters to create a Data Volume from an registry source

s3object

DataVolumeSourceS3 provides the parameters to create a Data Volume from an S3 source

snapshotobject

DataVolumeSourceSnapshot provides the parameters to create a Data Volume from an existing VolumeSnapshot

uploadobject

DataVolumeSourceUpload provides the parameters to create a Data Volume by uploading the source

vddkobject

DataVolumeSourceVDDK provides the parameters to create a Data Volume from a Vmware source

.spec.dataVolumeTemplates[].spec.source.blank

Description
DataVolumeBlankImage provides the parameters to create a new raw blank image for the PVC
Type
object

.spec.dataVolumeTemplates[].spec.source.gcs

Description
DataVolumeSourceGCS provides the parameters to create a Data Volume from an GCS source
Type
object
Required
url
PropertyTypeDescription
secretRefstring

SecretRef provides the secret reference needed to access the GCS source

urlstring

URL is the url of the GCS source

.spec.dataVolumeTemplates[].spec.source.http

Description
DataVolumeSourceHTTP can be either an http or https endpoint, with an optional basic auth user name and password, and an optional configmap containing additional CAs
Type
object
Required
url
PropertyTypeDescription
certConfigMapstring

CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate

extraHeadersarray

ExtraHeaders is a list of strings containing extra headers to include with HTTP transfer requests

secretExtraHeadersarray

SecretExtraHeaders is a list of Secret references, each containing an extra HTTP header that may include sensitive information

secretRefstring

SecretRef A Secret reference, the secret should contain accessKeyId (user name) base64 encoded, and secretKey (password) also base64 encoded

urlstring

URL is the URL of the http(s) endpoint

.spec.dataVolumeTemplates[].spec.source.http.extraHeaders

Description
ExtraHeaders is a list of strings containing extra headers to include with HTTP transfer requests
Type
array

.spec.dataVolumeTemplates[].spec.source.http.extraHeaders[]

Type
string

.spec.dataVolumeTemplates[].spec.source.http.secretExtraHeaders

Description
SecretExtraHeaders is a list of Secret references, each containing an extra HTTP header that may include sensitive information
Type
array

.spec.dataVolumeTemplates[].spec.source.http.secretExtraHeaders[]

Type
string

.spec.dataVolumeTemplates[].spec.source.imageio

Description
DataVolumeSourceImageIO provides the parameters to create a Data Volume from an imageio source
Type
object
Required
diskIdurl
PropertyTypeDescription
certConfigMapstring

CertConfigMap provides a reference to the CA cert

diskIdstring

DiskID provides id of a disk to be imported

secretRefstring

SecretRef provides the secret reference needed to access the ovirt-engine

urlstring

URL is the URL of the ovirt-engine

.spec.dataVolumeTemplates[].spec.source.pvc

Description
DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC
Type
object
Required
namenamespace
PropertyTypeDescription
namestring

The name of the source PVC

namespacestring

The namespace of the source PVC

.spec.dataVolumeTemplates[].spec.source.registry

Description
DataVolumeSourceRegistry provides the parameters to create a Data Volume from an registry source
Type
object
PropertyTypeDescription
certConfigMapstring

CertConfigMap provides a reference to the Registry certs

imageStreamstring

ImageStream is the name of image stream for import

platformobject

Platform describes the minimum runtime requirements of the image

pullMethodstring

PullMethod can be either "pod" (default import), or "node" (node docker cache based import)

secretRefstring

SecretRef provides the secret reference needed to access the Registry source

urlstring

URL is the url of the registry source (starting with the scheme: docker, oci-archive)

.spec.dataVolumeTemplates[].spec.source.registry.platform

Description
Platform describes the minimum runtime requirements of the image
Type
object
PropertyTypeDescription
architecturestring

Architecture specifies the image target CPU architecture

.spec.dataVolumeTemplates[].spec.source.s3

Description
DataVolumeSourceS3 provides the parameters to create a Data Volume from an S3 source
Type
object
Required
url
PropertyTypeDescription
certConfigMapstring

CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate

secretRefstring

SecretRef provides the secret reference needed to access the S3 source

urlstring

URL is the url of the S3 source

.spec.dataVolumeTemplates[].spec.source.snapshot

Description
DataVolumeSourceSnapshot provides the parameters to create a Data Volume from an existing VolumeSnapshot
Type
object
Required
namenamespace
PropertyTypeDescription
namestring

The name of the source VolumeSnapshot

namespacestring

The namespace of the source VolumeSnapshot

.spec.dataVolumeTemplates[].spec.source.upload

Description
DataVolumeSourceUpload provides the parameters to create a Data Volume by uploading the source
Type
object

.spec.dataVolumeTemplates[].spec.source.vddk

Description
DataVolumeSourceVDDK provides the parameters to create a Data Volume from a Vmware source
Type
object
PropertyTypeDescription
backingFilestring

BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi

extraArgsstring

ExtraArgs is a reference to a ConfigMap containing extra arguments to pass directly to the VDDK library

initImageURLstring

InitImageURL is an optional URL to an image containing an extracted VDDK library, overrides v2v-vmware config map

secretRefstring

SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host

thumbprintstring

Thumbprint is the certificate thumbprint of the vCenter or ESXi host

urlstring

URL is the URL of the vCenter or ESXi host with the VM to migrate

uuidstring

UUID is the UUID of the virtual machine that the backing file is attached to in vCenter/ESXi

.spec.dataVolumeTemplates[].spec.sourceRef

Description
SourceRef is an indirect reference to the source of data for the requested DataVolume
Type
object
Required
kindname
PropertyTypeDescription
kindstring

The kind of the source reference, currently only "DataSource" is supported

namestring

The name of the source reference

namespacestring

The namespace of the source reference, defaults to the DataVolume namespace

.spec.dataVolumeTemplates[].spec.storage

Description
Storage is the requested storage specification
Type
object
PropertyTypeDescription
accessModesarray

AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1

dataSourceobject

This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field.

dataSourceRefobject

Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef:

  • While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects.
  • While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
resourcesobject

Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

selectorobject

A label query over volumes to consider for binding.

storageClassNamestring

Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1

volumeModestring

volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.

volumeNamestring

VolumeName is the binding reference to the PersistentVolume backing this claim.

.spec.dataVolumeTemplates[].spec.storage.accessModes

Description
AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
Type
array

.spec.dataVolumeTemplates[].spec.storage.accessModes[]

Type
string

.spec.dataVolumeTemplates[].spec.storage.dataSource

Description
This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field.
Type
object
Required
kindname
PropertyTypeDescription
apiGroupstring

APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.

kindstring

Kind is the type of resource being referenced

namestring

Name is the name of resource being referenced

.spec.dataVolumeTemplates[].spec.storage.dataSourceRef

Description
Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
Type
object
Required
kindname
PropertyTypeDescription
apiGroupstring

APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.

kindstring

Kind is the type of resource being referenced

namestring

Name is the name of resource being referenced

namespacestring

Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.

.spec.dataVolumeTemplates[].spec.storage.resources

Description
Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
Type
object
PropertyTypeDescription
limitsobject

Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

requestsobject

Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

.spec.dataVolumeTemplates[].spec.storage.resources.limits

Description
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Type
object

.spec.dataVolumeTemplates[].spec.storage.resources.requests

Description
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Type
object

.spec.dataVolumeTemplates[].spec.storage.selector

Description
A label query over volumes to consider for binding.
Type
object
PropertyTypeDescription
matchExpressionsarray

matchExpressions is a list of label selector requirements. The requirements are ANDed.

matchLabelsobject

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

.spec.dataVolumeTemplates[].spec.storage.selector.matchExpressions

Description
matchExpressions is a list of label selector requirements. The requirements are ANDed.
Type
array

.spec.dataVolumeTemplates[].spec.storage.selector.matchExpressions[]

Description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

key is the label key that the selector applies to.

operatorstring

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

valuesarray

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

.spec.dataVolumeTemplates[].spec.storage.selector.matchExpressions[].values

Description
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Type
array

.spec.dataVolumeTemplates[].spec.storage.selector.matchExpressions[].values[]

Type
string

.spec.dataVolumeTemplates[].spec.storage.selector.matchLabels

Description
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Type
object

.spec.dataVolumeTemplates[].status

Description
DataVolumeTemplateDummyStatus is here simply for backwards compatibility with a previous API.
Type
object

.spec.instancetype

Description
InstancetypeMatcher references a instancetype that is used to fill fields in Template
Type
object
PropertyTypeDescription
inferFromVolumestring

InferFromVolume lists the name of a volume that should be used to infer or discover the instancetype to be used through known annotations on the underlying resource. Once applied to the InstancetypeMatcher this field is removed.

inferFromVolumeFailurePolicystring

InferFromVolumeFailurePolicy controls what should happen on failure when inferring the instancetype. Allowed values are: "RejectInferFromVolumeFailure" and "IgnoreInferFromVolumeFailure". If not specified, "RejectInferFromVolumeFailure" is used by default.

kindstring

Kind specifies which instancetype resource is referenced. Allowed values are: "VirtualMachineInstancetype" and "VirtualMachineClusterInstancetype". If not specified, "VirtualMachineClusterInstancetype" is used by default.

namestring

Name is the name of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype

revisionNamestring

RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance.

.spec.preference

Description
PreferenceMatcher references a set of preference that is used to fill fields in Template
Type
object
PropertyTypeDescription
inferFromVolumestring

InferFromVolume lists the name of a volume that should be used to infer or discover the preference to be used through known annotations on the underlying resource. Once applied to the PreferenceMatcher this field is removed.

inferFromVolumeFailurePolicystring

InferFromVolumeFailurePolicy controls what should happen on failure when preference the instancetype. Allowed values are: "RejectInferFromVolumeFailure" and "IgnoreInferFromVolumeFailure". If not specified, "RejectInferFromVolumeFailure" is used by default.

kindstring

Kind specifies which preference resource is referenced. Allowed values are: "VirtualMachinePreference" and "VirtualMachineClusterPreference". If not specified, "VirtualMachineClusterPreference" is used by default.

namestring

Name is the name of the VirtualMachinePreference or VirtualMachineClusterPreference

revisionNamestring

RevisionName specifies a ControllerRevision containing a specific copy of the VirtualMachinePreference or VirtualMachineClusterPreference to be used. This is initially captured the first time the instancetype is applied to the VirtualMachineInstance.

.spec.template

Description
Template is the direct specification of VirtualMachineInstance
Type
object
PropertyTypeDescription
metadataObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

specobject

VirtualMachineInstance Spec contains the VirtualMachineInstance specification.

.spec.template.spec

Description
VirtualMachineInstance Spec contains the VirtualMachineInstance specification.
Type
object
Required
domain
PropertyTypeDescription
accessCredentialsarray

Specifies a set of public keys to inject into the vm guest

affinityobject

If affinity is specifies, obey all the affinity rules

architecturestring

Specifies the architecture of the vm guest you are attempting to run. Defaults to the compiled architecture of the KubeVirt components

dnsConfigobject

Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.

dnsPolicystring

Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.

domainobject

Specification of the desired behavior of the VirtualMachineInstance on the host.

evictionStrategystring

EvictionStrategy describes the strategy to follow when a node drain occurs. The possible options are:

  • "None": No action will be taken, according to the specified 'RunStrategy' the VirtualMachine will be restarted or shutdown.
  • "LiveMigrate": the VirtualMachineInstance will be migrated instead of being shutdown.
  • "LiveMigrateIfPossible": the same as "LiveMigrate" but only if the VirtualMachine is Live-Migratable, otherwise it will behave as "None".
  • "External": the VirtualMachineInstance will be protected and 'vmi.Status.EvacuationNodeName' will be set on eviction. This is mainly useful for cluster-api-provider-kubevirt (capk) which needs a way for VMI's to be blocked from eviction, yet signal capk that eviction has been called on the VMI so the capk controller can handle tearing the VMI down. Details can be found in the commit description https://github.com/kubevirt/kubevirt/commit/c1d77face705c8b126696bac9a3ee3825f27f1fa.
hostnamestring

Specifies the hostname of the vmi If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly.

livenessProbeobject

Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

networksarray

List of networks that can be attached to a vm's virtual interface.

nodeSelectorobject

NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/

priorityClassNamestring

If specified, indicates the pod's priority. If not specified, the pod priority will be default or zero if there is no default.

readinessProbeobject

Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

resourceClaimsarray

ResourceClaims define which ResourceClaims must be allocated and reserved before the VMI, hence virt-launcher pod is allowed to start. The resources will be made available to the domain which consumes them by name.

This is an alpha field and requires enabling the DynamicResourceAllocation feature gate in kubernetes https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/ This field should only be configured if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha.

schedulerNamestring

If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler.

startStrategystring

StartStrategy can be set to "Paused" if Virtual Machine should be started in paused state.

subdomainstring

If specified, the fully qualified vmi hostname will be "...svc.". If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, no matter if the vmi itself can pick up a hostname.

terminationGracePeriodSecondsinteger

Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated.

tolerationsarray

If toleration is specified, obey all the toleration rules.

topologySpreadConstraintsarray

TopologySpreadConstraints describes how a group of VMIs will be spread across a given topology domains. K8s scheduler will schedule VMI pods in a way which abides by the constraints.

volumesarray

List of volumes that can be mounted by disks belonging to the vmi.

.spec.template.spec.accessCredentials

Description
Specifies a set of public keys to inject into the vm guest
Type
array

.spec.template.spec.accessCredentials[]

Description
AccessCredential represents a credential source that can be used to authorize remote access to the vm guest Only one of its members may be specified.
Type
object
PropertyTypeDescription
sshPublicKeyobject

SSHPublicKey represents the source and method of applying a ssh public key into a guest virtual machine.

userPasswordobject

UserPassword represents the source and method for applying a guest user's password

.spec.template.spec.accessCredentials[].sshPublicKey

Description
SSHPublicKey represents the source and method of applying a ssh public key into a guest virtual machine.
Type
object
Required
propagationMethodsource
PropertyTypeDescription
propagationMethodobject

PropagationMethod represents how the public key is injected into the vm guest.

sourceobject

Source represents where the public keys are pulled from

.spec.template.spec.accessCredentials[].sshPublicKey.propagationMethod

Description
PropagationMethod represents how the public key is injected into the vm guest.
Type
object
PropertyTypeDescription
configDriveobject

ConfigDrivePropagation means that the ssh public keys are injected into the VM using metadata using the configDrive cloud-init provider

noCloudobject

NoCloudPropagation means that the ssh public keys are injected into the VM using metadata using the noCloud cloud-init provider

qemuGuestAgentobject

QemuGuestAgentAccessCredentailPropagation means ssh public keys are dynamically injected into the vm at runtime via the qemu guest agent. This feature requires the qemu guest agent to be running within the guest.

.spec.template.spec.accessCredentials[].sshPublicKey.propagationMethod.configDrive

Description
ConfigDrivePropagation means that the ssh public keys are injected into the VM using metadata using the configDrive cloud-init provider
Type
object

.spec.template.spec.accessCredentials[].sshPublicKey.propagationMethod.noCloud

Description
NoCloudPropagation means that the ssh public keys are injected into the VM using metadata using the noCloud cloud-init provider
Type
object

.spec.template.spec.accessCredentials[].sshPublicKey.propagationMethod.qemuGuestAgent

Description
QemuGuestAgentAccessCredentailPropagation means ssh public keys are dynamically injected into the vm at runtime via the qemu guest agent. This feature requires the qemu guest agent to be running within the guest.
Type
object
Required
users
PropertyTypeDescription
usersarray

Users represents a list of guest users that should have the ssh public keys added to their authorized_keys file.

.spec.template.spec.accessCredentials[].sshPublicKey.propagationMethod.qemuGuestAgent.users

Description
Users represents a list of guest users that should have the ssh public keys added to their authorized_keys file.
Type
array

.spec.template.spec.accessCredentials[].sshPublicKey.propagationMethod.qemuGuestAgent.users[]

Type
string

.spec.template.spec.accessCredentials[].sshPublicKey.source

Description
Source represents where the public keys are pulled from
Type
object
PropertyTypeDescription
secretobject

Secret means that the access credential is pulled from a kubernetes secret

.spec.template.spec.accessCredentials[].sshPublicKey.source.secret

Description
Secret means that the access credential is pulled from a kubernetes secret
Type
object
Required
secretName
PropertyTypeDescription
secretNamestring

SecretName represents the name of the secret in the VMI's namespace

.spec.template.spec.accessCredentials[].userPassword

Description
UserPassword represents the source and method for applying a guest user's password
Type
object
Required
propagationMethodsource
PropertyTypeDescription
propagationMethodobject

propagationMethod represents how the user passwords are injected into the vm guest.

sourceobject

Source represents where the user passwords are pulled from

.spec.template.spec.accessCredentials[].userPassword.propagationMethod

Description
propagationMethod represents how the user passwords are injected into the vm guest.
Type
object
PropertyTypeDescription
qemuGuestAgentobject

QemuGuestAgentAccessCredentailPropagation means passwords are dynamically injected into the vm at runtime via the qemu guest agent. This feature requires the qemu guest agent to be running within the guest.

.spec.template.spec.accessCredentials[].userPassword.propagationMethod.qemuGuestAgent

Description
QemuGuestAgentAccessCredentailPropagation means passwords are dynamically injected into the vm at runtime via the qemu guest agent. This feature requires the qemu guest agent to be running within the guest.
Type
object

.spec.template.spec.accessCredentials[].userPassword.source

Description
Source represents where the user passwords are pulled from
Type
object
PropertyTypeDescription
secretobject

Secret means that the access credential is pulled from a kubernetes secret

.spec.template.spec.accessCredentials[].userPassword.source.secret

Description
Secret means that the access credential is pulled from a kubernetes secret
Type
object
Required
secretName
PropertyTypeDescription
secretNamestring

SecretName represents the name of the secret in the VMI's namespace

.spec.template.spec.affinity

Description
If affinity is specifies, obey all the affinity rules
Type
object
PropertyTypeDescription
nodeAffinityobject

Describes node affinity scheduling rules for the pod.

podAffinityobject

Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).

podAntiAffinityobject

Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).

.spec.template.spec.affinity.nodeAffinity

Description
Describes node affinity scheduling rules for the pod.
Type
object
PropertyTypeDescription
preferredDuringSchedulingIgnoredDuringExecutionarray

The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.

requiredDuringSchedulingIgnoredDuringExecutionobject

If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution

Description
The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.
Type
array

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[]

Description
An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
Type
object
Required
preferenceweight
PropertyTypeDescription
preferenceobject

A node selector term, associated with the corresponding weight.

weightinteger

Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference

Description
A node selector term, associated with the corresponding weight.
Type
object
PropertyTypeDescription
matchExpressionsarray

A list of node selector requirements by node's labels.

matchFieldsarray

A list of node selector requirements by node's fields.

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions

Description
A list of node selector requirements by node's labels.
Type
array

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[]

Description
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

The label key that the selector applies to.

operatorstring

Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.

valuesarray

An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[].values

Description
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
Type
array

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[].values[]

Type
string

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields

Description
A list of node selector requirements by node's fields.
Type
array

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[]

Description
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

The label key that the selector applies to.

operatorstring

Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.

valuesarray

An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[].values

Description
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
Type
array

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[].values[]

Type
string

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution

Description
If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.
Type
object
Required
nodeSelectorTerms
PropertyTypeDescription
nodeSelectorTermsarray

Required. A list of node selector terms. The terms are ORed.

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms

Description
Required. A list of node selector terms. The terms are ORed.
Type
array

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[]

Description
A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
Type
object
PropertyTypeDescription
matchExpressionsarray

A list of node selector requirements by node's labels.

matchFieldsarray

A list of node selector requirements by node's fields.

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions

Description
A list of node selector requirements by node's labels.
Type
array

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[]

Description
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

The label key that the selector applies to.

operatorstring

Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.

valuesarray

An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[].values

Description
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
Type
array

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[].values[]

Type
string

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields

Description
A list of node selector requirements by node's fields.
Type
array

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[]

Description
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

The label key that the selector applies to.

operatorstring

Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.

valuesarray

An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[].values

Description
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
Type
array

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[].values[]

Type
string

.spec.template.spec.affinity.podAffinity

Description
Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
Type
object
PropertyTypeDescription
preferredDuringSchedulingIgnoredDuringExecutionarray

The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.

requiredDuringSchedulingIgnoredDuringExecutionarray

If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution

Description
The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
Type
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[]

Description
The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
Type
object
Required
podAffinityTermweight
PropertyTypeDescription
podAffinityTermobject

Required. A pod affinity term, associated with the corresponding weight.

weightinteger

weight associated with matching the corresponding podAffinityTerm, in the range 1-100.

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm

Description
Required. A pod affinity term, associated with the corresponding weight.
Type
object
Required
topologyKey
PropertyTypeDescription
labelSelectorobject

A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.

matchLabelKeysarray

MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key in (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.

mismatchLabelKeysarray

MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key notin (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.

namespaceSelectorobject

A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.

namespacesarray

namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".

topologyKeystring

This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector

Description
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.
Type
object
PropertyTypeDescription
matchExpressionsarray

matchExpressions is a list of label selector requirements. The requirements are ANDed.

matchLabelsobject

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions

Description
matchExpressions is a list of label selector requirements. The requirements are ANDed.
Type
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[]

Description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

key is the label key that the selector applies to.

operatorstring

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

valuesarray

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values

Description
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Type
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values[]

Type
string

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchLabels

Description
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Type
object

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys

Description
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key in (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.
Type
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys[]

Type
string

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys

Description
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key notin (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
Type
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys[]

Type
string

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector

Description
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.
Type
object
PropertyTypeDescription
matchExpressionsarray

matchExpressions is a list of label selector requirements. The requirements are ANDed.

matchLabelsobject

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions

Description
matchExpressions is a list of label selector requirements. The requirements are ANDed.
Type
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[]

Description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

key is the label key that the selector applies to.

operatorstring

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

valuesarray

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values

Description
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Type
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values[]

Type
string

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchLabels

Description
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Type
object

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces

Description
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
Type
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces[]

Type
string

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution

Description
If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
Type
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[]

Description
Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
Type
object
Required
topologyKey
PropertyTypeDescription
labelSelectorobject

A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.

matchLabelKeysarray

MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key in (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.

mismatchLabelKeysarray

MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key notin (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.

namespaceSelectorobject

A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.

namespacesarray

namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".

topologyKeystring

This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector

Description
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.
Type
object
PropertyTypeDescription
matchExpressionsarray

matchExpressions is a list of label selector requirements. The requirements are ANDed.

matchLabelsobject

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions

Description
matchExpressions is a list of label selector requirements. The requirements are ANDed.
Type
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[]

Description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

key is the label key that the selector applies to.

operatorstring

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

valuesarray

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values

Description
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Type
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values[]

Type
string

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchLabels

Description
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Type
object

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys

Description
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key in (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.
Type
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys[]

Type
string

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys

Description
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key notin (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
Type
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys[]

Type
string

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector

Description
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.
Type
object
PropertyTypeDescription
matchExpressionsarray

matchExpressions is a list of label selector requirements. The requirements are ANDed.

matchLabelsobject

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions

Description
matchExpressions is a list of label selector requirements. The requirements are ANDed.
Type
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[]

Description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

key is the label key that the selector applies to.

operatorstring

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

valuesarray

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values

Description
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Type
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values[]

Type
string

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchLabels

Description
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Type
object

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces

Description
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
Type
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces[]

Type
string

.spec.template.spec.affinity.podAntiAffinity

Description
Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
Type
object
PropertyTypeDescription
preferredDuringSchedulingIgnoredDuringExecutionarray

The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.

requiredDuringSchedulingIgnoredDuringExecutionarray

If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution

Description
The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
Type
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[]

Description
The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
Type
object
Required
podAffinityTermweight
PropertyTypeDescription
podAffinityTermobject

Required. A pod affinity term, associated with the corresponding weight.

weightinteger

weight associated with matching the corresponding podAffinityTerm, in the range 1-100.

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm

Description
Required. A pod affinity term, associated with the corresponding weight.
Type
object
Required
topologyKey
PropertyTypeDescription
labelSelectorobject

A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.

matchLabelKeysarray

MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key in (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.

mismatchLabelKeysarray

MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key notin (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.

namespaceSelectorobject

A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.

namespacesarray

namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".

topologyKeystring

This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector

Description
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.
Type
object
PropertyTypeDescription
matchExpressionsarray

matchExpressions is a list of label selector requirements. The requirements are ANDed.

matchLabelsobject

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions

Description
matchExpressions is a list of label selector requirements. The requirements are ANDed.
Type
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[]

Description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

key is the label key that the selector applies to.

operatorstring

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

valuesarray

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values

Description
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Type
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values[]

Type
string

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchLabels

Description
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Type
object

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys

Description
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key in (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.
Type
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys[]

Type
string

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys

Description
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key notin (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
Type
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys[]

Type
string

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector

Description
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.
Type
object
PropertyTypeDescription
matchExpressionsarray

matchExpressions is a list of label selector requirements. The requirements are ANDed.

matchLabelsobject

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions

Description
matchExpressions is a list of label selector requirements. The requirements are ANDed.
Type
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[]

Description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

key is the label key that the selector applies to.

operatorstring

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

valuesarray

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values

Description
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Type
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values[]

Type
string

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchLabels

Description
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Type
object

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces

Description
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
Type
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces[]

Type
string

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution

Description
If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
Type
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[]

Description
Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
Type
object
Required
topologyKey
PropertyTypeDescription
labelSelectorobject

A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.

matchLabelKeysarray

MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key in (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.

mismatchLabelKeysarray

MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key notin (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.

namespaceSelectorobject

A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.

namespacesarray

namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".

topologyKeystring

This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector

Description
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.
Type
object
PropertyTypeDescription
matchExpressionsarray

matchExpressions is a list of label selector requirements. The requirements are ANDed.

matchLabelsobject

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions

Description
matchExpressions is a list of label selector requirements. The requirements are ANDed.
Type
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[]

Description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

key is the label key that the selector applies to.

operatorstring

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

valuesarray

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values

Description
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Type
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values[]

Type
string

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchLabels

Description
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Type
object

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys

Description
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key in (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set.
Type
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys[]

Type
string

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys

Description
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with 'labelSelector' as 'key notin (value)' to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
Type
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys[]

Type
string

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector

Description
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.
Type
object
PropertyTypeDescription
matchExpressionsarray

matchExpressions is a list of label selector requirements. The requirements are ANDed.

matchLabelsobject

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions

Description
matchExpressions is a list of label selector requirements. The requirements are ANDed.
Type
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[]

Description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

key is the label key that the selector applies to.

operatorstring

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

valuesarray

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values

Description
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Type
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values[]

Type
string

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchLabels

Description
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Type
object

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces

Description
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
Type
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces[]

Type
string

.spec.template.spec.dnsConfig

Description
Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.
Type
object
PropertyTypeDescription
nameserversarray

A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.

optionsarray

A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.

searchesarray

A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.

.spec.template.spec.dnsConfig.nameservers

Description
A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.
Type
array

.spec.template.spec.dnsConfig.nameservers[]

Type
string

.spec.template.spec.dnsConfig.options

Description
A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.
Type
array

.spec.template.spec.dnsConfig.options[]

Description
PodDNSConfigOption defines DNS resolver options of a pod.
Type
object
PropertyTypeDescription
namestring

Name is this DNS resolver option's name. Required.

valuestring

Value is this DNS resolver option's value.

.spec.template.spec.dnsConfig.searches

Description
A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.
Type
array

.spec.template.spec.dnsConfig.searches[]

Type
string

.spec.template.spec.domain

Description
Specification of the desired behavior of the VirtualMachineInstance on the host.
Type
object
Required
devices
PropertyTypeDescription
chassisobject

Chassis specifies the chassis info passed to the domain.

clockobject

Clock sets the clock and timers of the vmi.

cpuobject

CPU allow specified the detailed CPU topology inside the vmi.

devicesobject

Devices allows adding disks, network interfaces, and others

featuresobject

Features like acpi, apic, hyperv, smm.

firmwareobject

Firmware.

ioThreadsobject

IOThreads specifies the IOThreads options.

ioThreadsPolicystring

Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto, supplementalPool

launchSecurityobject

Launch Security setting of the vmi.

machineobject

Machine type.

memoryobject

Memory allow specifying the VMI memory features.

resourcesobject

Resources describes the Compute Resources required by this vmi.

.spec.template.spec.domain.chassis

Description
Chassis specifies the chassis info passed to the domain.
Type
object
PropertyTypeDescription
assetstring
manufacturerstring
serialstring
skustring
versionstring

.spec.template.spec.domain.clock

Description
Clock sets the clock and timers of the vmi.
Type
object
PropertyTypeDescription
timerobject

Timer specifies whih timers are attached to the vmi.

timezonestring

Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York').

utcobject

UTC sets the guest clock to UTC on each boot. If an offset is specified, guest changes to the clock will be kept during reboots and are not reset.

.spec.template.spec.domain.clock.timer

Description
Timer specifies whih timers are attached to the vmi.
Type
object
PropertyTypeDescription
hpetobject

HPET (High Precision Event Timer) - multiple timers with periodic interrupts.

hypervobject

Hyperv (Hypervclock) - lets guests read the host’s wall clock time (paravirtualized). For windows guests.

kvmobject

KVM (KVM clock) - lets guests read the host’s wall clock time (paravirtualized). For linux guests.

pitobject

PIT (Programmable Interval Timer) - a timer with periodic interrupts.

rtcobject

RTC (Real Time Clock) - a continuously running timer with periodic interrupts.

.spec.template.spec.domain.clock.timer.hpet

Description
HPET (High Precision Event Timer) - multiple timers with periodic interrupts.
Type
object
PropertyTypeDescription
presentboolean

Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true.

tickPolicystring

TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of "delay", "catchup", "merge", "discard".

.spec.template.spec.domain.clock.timer.hyperv

Description
Hyperv (Hypervclock) - lets guests read the host’s wall clock time (paravirtualized). For windows guests.
Type
object
PropertyTypeDescription
presentboolean

Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true.

.spec.template.spec.domain.clock.timer.kvm

Description
KVM (KVM clock) - lets guests read the host’s wall clock time (paravirtualized). For linux guests.
Type
object
PropertyTypeDescription
presentboolean

Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true.

.spec.template.spec.domain.clock.timer.pit

Description
PIT (Programmable Interval Timer) - a timer with periodic interrupts.
Type
object
PropertyTypeDescription
presentboolean

Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true.

tickPolicystring

TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of "delay", "catchup", "discard".

.spec.template.spec.domain.clock.timer.rtc

Description
RTC (Real Time Clock) - a continuously running timer with periodic interrupts.
Type
object
PropertyTypeDescription
presentboolean

Enabled set to false makes sure that the machine type or a preset can't add the timer. Defaults to true.

tickPolicystring

TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. One of "delay", "catchup".

trackstring

Track the guest or the wall clock.

.spec.template.spec.domain.clock.utc

Description
UTC sets the guest clock to UTC on each boot. If an offset is specified, guest changes to the clock will be kept during reboots and are not reset.
Type
object
PropertyTypeDescription
offsetSecondsinteger

OffsetSeconds specifies an offset in seconds, relative to UTC. If set, guest changes to the clock will be kept during reboots and not reset.

.spec.template.spec.domain.cpu

Description
CPU allow specified the detailed CPU topology inside the vmi.
Type
object
PropertyTypeDescription
coresinteger

Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1.

dedicatedCpuPlacementboolean

DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it.

featuresarray

Features specifies the CPU features list inside the VMI.

isolateEmulatorThreadboolean

IsolateEmulatorThread requests one more dedicated pCPU to be allocated for the VMI to place the emulator thread on it.

maxSocketsinteger

MaxSockets specifies the maximum amount of sockets that can be hotplugged

modelstring

Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like "host-passthrough" to get the same CPU as the node and "host-model" to get CPU closest to the node one. Defaults to host-model.

numaobject

NUMA allows specifying settings for the guest NUMA topology

realtimeobject

Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads

socketsinteger

Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1.

threadsinteger

Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1.

.spec.template.spec.domain.cpu.features

Description
Features specifies the CPU features list inside the VMI.
Type
array

.spec.template.spec.domain.cpu.features[]

Description
CPUFeature allows specifying a CPU feature.
Type
object
Required
name
PropertyTypeDescription
namestring

Name of the CPU feature

policystring

Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU. require - Guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. optional - The feature will be supported by virtual CPU if and only if it is supported by host CPU. disable - The feature will not be supported by virtual CPU. forbid - Guest creation will fail if the feature is supported by host CPU. Defaults to require

.spec.template.spec.domain.cpu.numa

Description
NUMA allows specifying settings for the guest NUMA topology
Type
object
PropertyTypeDescription
guestMappingPassthroughobject

GuestMappingPassthrough will create an efficient guest topology based on host CPUs exclusively assigned to a pod. The created topology ensures that memory and CPUs on the virtual numa nodes never cross boundaries of host numa nodes.

.spec.template.spec.domain.cpu.numa.guestMappingPassthrough

Description
GuestMappingPassthrough will create an efficient guest topology based on host CPUs exclusively assigned to a pod. The created topology ensures that memory and CPUs on the virtual numa nodes never cross boundaries of host numa nodes.
Type
object

.spec.template.spec.domain.cpu.realtime

Description
Realtime instructs the virt-launcher to tune the VMI for lower latency, optional for real time workloads
Type
object
PropertyTypeDescription
maskstring

Mask defines the vcpu mask expression that defines which vcpus are used for realtime. Format matches libvirt's expressions. Example: "0-3,^1","0,2,3","2-3"

.spec.template.spec.domain.devices

Description
Devices allows adding disks, network interfaces, and others
Type
object
PropertyTypeDescription
autoattachGraphicsDeviceboolean

Whether to attach the default graphics device or not. VNC will not be available if set to false. Defaults to true.

autoattachInputDeviceboolean

Whether to attach an Input Device. Defaults to false.

autoattachMemBalloonboolean

Whether to attach the Memory balloon device with default period. Period can be adjusted in virt-config. Defaults to true.

autoattachPodInterfaceboolean

Whether to attach a pod network interface. Defaults to true.

autoattachSerialConsoleboolean

Whether to attach the default virtio-serial console or not. Serial console access will not be available if set to false. Defaults to true.

autoattachVSOCKboolean

Whether to attach the VSOCK CID to the VM or not. VSOCK access will be available if set to true. Defaults to false.

blockMultiQueueboolean

Whether or not to enable virtio multi-queue for block devices. Defaults to false.

clientPassthroughobject

To configure and access client devices such as redirecting USB

disableHotplugboolean

DisableHotplug disabled the ability to hotplug disks.

disksarray

Disks describes disks, cdroms and luns which are connected to the vmi.

downwardMetricsobject

DownwardMetrics creates a virtio serials for exposing the downward metrics to the vmi.

filesystemsarray

Filesystems describes filesystem which is connected to the vmi.

gpusarray

Whether to attach a GPU device to the vmi.

hostDevicesarray

Whether to attach a host device to the vmi.

inputsarray

Inputs describe input devices

interfacesarray

Interfaces describe network interfaces which are added to the vmi.

logSerialConsoleboolean

Whether to log the auto-attached default serial console or not. Serial console logs will be collect to a file and then streamed from a named 'guest-console-log'. Not relevant if autoattachSerialConsole is disabled. Defaults to cluster wide setting on VirtualMachineOptions.

networkInterfaceMultiqueueboolean

If specified, virtual network interfaces configured with a virtio bus will also enable the vhost multiqueue feature for network devices. The number of queues created depends on additional factors of the VirtualMachineInstance, like the number of guest CPUs.

panicDevicesarray

PanicDevices provides additional crash information when a guest crashes.

rngobject

Whether to have random number generator from host

soundobject

Whether to emulate a sound device.

tpmobject

Whether to emulate a TPM device.

useVirtioTransitionalboolean

Fall back to legacy virtio 0.9 support if virtio bus is selected on devices. This is helpful for old machines like CentOS6 or RHEL6 which do not understand virtio_non_transitional (virtio 1.0).

videoobject

Video describes the video device configuration for the vmi.

watchdogobject

Watchdog describes a watchdog device which can be added to the vmi.

.spec.template.spec.domain.devices.clientPassthrough

Description
To configure and access client devices such as redirecting USB
Type
object

.spec.template.spec.domain.devices.disks

Description
Disks describes disks, cdroms and luns which are connected to the vmi.
Type
array

.spec.template.spec.domain.devices.disks[]

Type
object
Required
name
PropertyTypeDescription
blockSizeobject

If specified, the virtual disk will be presented with the given block sizes.

bootOrderinteger

BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists.

cachestring

Cache specifies which kvm disk cache mode should be used. Supported values are: none: Guest I/O not cached on the host, but may be kept in a disk cache. writethrough: Guest I/O cached on the host but written through to the physical medium. Slowest but with most guarantees. writeback: Guest I/O cached on the host. Defaults to none if the storage supports O_DIRECT, otherwise writethrough.

cdromobject

Attach a volume as a cdrom to the vmi.

changedBlockTrackingboolean

ChangedBlockTracking indicates this disk should have CBT option Defaults to false.

dedicatedIOThreadboolean

dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false.

diskobject

Attach a volume as a disk to the vmi.

errorPolicystring

If specified, it can change the default error policy (stop) for the disk

iostring

IO specifies which QEMU disk IO mode should be used. Supported values are: native, default, threads.

lunobject

Attach a volume as a LUN to the vmi.

namestring

Name is the device name

serialstring

Serial provides the ability to specify a serial number for the disk device.

shareableboolean

If specified the disk is made sharable and multiple write from different VMs are permitted

tagstring

If specified, disk address and its tag will be provided to the guest via config drive metadata

.spec.template.spec.domain.devices.disks[].blockSize

Description
If specified, the virtual disk will be presented with the given block sizes.
Type
object
PropertyTypeDescription
customobject

CustomBlockSize represents the desired logical and physical block size for a VM disk.

matchVolumeobject

Represents if a feature is enabled or disabled.

.spec.template.spec.domain.devices.disks[].blockSize.custom

Description
CustomBlockSize represents the desired logical and physical block size for a VM disk.
Type
object
PropertyTypeDescription
discardGranularityinteger
logicalinteger
physicalinteger

.spec.template.spec.domain.devices.disks[].blockSize.matchVolume

Description
Represents if a feature is enabled or disabled.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.devices.disks[].cdrom

Description
Attach a volume as a cdrom to the vmi.
Type
object
PropertyTypeDescription
busstring

Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi.

readonlyboolean

ReadOnly. Defaults to true.

traystring

Tray indicates if the tray of the device is open or closed. Allowed values are "open" and "closed". Defaults to closed.

.spec.template.spec.domain.devices.disks[].disk

Description
Attach a volume as a disk to the vmi.
Type
object
PropertyTypeDescription
busstring

Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, usb.

pciAddressstring

If specified, the virtual disk will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10

readonlyboolean

ReadOnly. Defaults to false.

.spec.template.spec.domain.devices.disks[].lun

Description
Attach a volume as a LUN to the vmi.
Type
object
PropertyTypeDescription
busstring

Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi.

readonlyboolean

ReadOnly. Defaults to false.

reservationboolean

Reservation indicates if the disk needs to support the persistent reservation for the SCSI disk

.spec.template.spec.domain.devices.downwardMetrics

Description
DownwardMetrics creates a virtio serials for exposing the downward metrics to the vmi.
Type
object

.spec.template.spec.domain.devices.filesystems

Description
Filesystems describes filesystem which is connected to the vmi.
Type
array

.spec.template.spec.domain.devices.filesystems[]

Type
object
Required
namevirtiofs
PropertyTypeDescription
namestring

Name is the device name

virtiofsobject

Virtiofs is supported

.spec.template.spec.domain.devices.filesystems[].virtiofs

Description
Virtiofs is supported
Type
object

.spec.template.spec.domain.devices.gpus

Description
Whether to attach a GPU device to the vmi.
Type
array

.spec.template.spec.domain.devices.gpus[]

Type
object
Required
name
PropertyTypeDescription
claimNamestring

ClaimName needs to be provided from the list vmi.spec.resourceClaims[].name where this device is allocated

deviceNamestring

DeviceName is the name of the device provisioned by device-plugins

namestring

Name of the GPU device as exposed by a device plugin

requestNamestring

RequestName needs to be provided from resourceClaim.spec.devices.requests[].name where this device is requested

tagstring

If specified, the virtual network interface address and its tag will be provided to the guest via config drive

virtualGPUOptionsobject

.spec.template.spec.domain.devices.gpus[].virtualGPUOptions

Type
object
PropertyTypeDescription
displayobject

.spec.template.spec.domain.devices.gpus[].virtualGPUOptions.display

Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if a display addapter backed by a vGPU should be enabled or disabled on the guest. Defaults to true.

ramFBobject

Enables a boot framebuffer, until the guest OS loads a real GPU driver Defaults to true.

.spec.template.spec.domain.devices.gpus[].virtualGPUOptions.display.ramFB

Description
Enables a boot framebuffer, until the guest OS loads a real GPU driver Defaults to true.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.devices.hostDevices

Description
Whether to attach a host device to the vmi.
Type
array

.spec.template.spec.domain.devices.hostDevices[]

Type
object
Required
name
PropertyTypeDescription
claimNamestring

ClaimName needs to be provided from the list vmi.spec.resourceClaims[].name where this device is allocated

deviceNamestring

DeviceName is the name of the device provisioned by device-plugins

namestring
requestNamestring

RequestName needs to be provided from resourceClaim.spec.devices.requests[].name where this device is requested

tagstring

If specified, the virtual network interface address and its tag will be provided to the guest via config drive

.spec.template.spec.domain.devices.inputs

Description
Inputs describe input devices
Type
array

.spec.template.spec.domain.devices.inputs[]

Type
object
Required
nametype
PropertyTypeDescription
busstring

Bus indicates the bus of input device to emulate. Supported values: virtio, usb.

namestring

Name is the device name

typestring

Type indicated the type of input device. Supported values: tablet.

.spec.template.spec.domain.devices.interfaces

Description
Interfaces describe network interfaces which are added to the vmi.
Type
array

.spec.template.spec.domain.devices.interfaces[]

Type
object
Required
name
PropertyTypeDescription
acpiIndexinteger

If specified, the ACPI index is used to provide network interface device naming, that is stable across changes in PCI addresses assigned to the device. This value is required to be unique across all devices and be between 1 and (16*1024-1).

bindingobject

Binding specifies the binding plugin that will be used to connect the interface to the guest. It provides an alternative to InterfaceBindingMethod. version: 1alphav1

bootOrderinteger

BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each interface or disk that has a boot order must have a unique value. Interfaces without a boot order are not tried.

bridgeobject

InterfaceBridge connects to a given network via a linux bridge.

dhcpOptionsobject

If specified the network interface will pass additional DHCP options to the VMI

macAddressstring

Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF.

macvtapobject

DeprecatedMacvtap is an alias to the deprecated Macvtap interface, please refer to Kubevirt user guide for alternatives. Deprecated: Removed in v1.3

masqueradeobject

InterfaceMasquerade connects to a given network using netfilter rules to nat the traffic.

modelstring

Interface model. One of: e1000, e1000e, igb, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio.

namestring

Logical name of the interface as well as a reference to the associated networks. Must match the Name of a Network.

passtobject

DeprecatedPasst is an alias to the deprecated Passt interface, please refer to Kubevirt user guide for alternatives. Deprecated: Removed in v1.3

pciAddressstring

If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10

portsarray

List of ports to be forwarded to the virtual machine.

slirpobject

DeprecatedSlirp is an alias to the deprecated Slirp interface Deprecated: Removed in v1.3

sriovobject

InterfaceSRIOV connects to a given network by passing-through an SR-IOV PCI device via vfio.

statestring

State represents the requested operational state of the interface. The supported values are: 'absent', expressing a request to remove the interface. 'down', expressing a request to set the link down. 'up', expressing a request to set the link up. Empty value functions as 'up'.

tagstring

If specified, the virtual network interface address and its tag will be provided to the guest via config drive

.spec.template.spec.domain.devices.interfaces[].binding

Description
Binding specifies the binding plugin that will be used to connect the interface to the guest. It provides an alternative to InterfaceBindingMethod. version: 1alphav1
Type
object
Required
name
PropertyTypeDescription
namestring

Name references to the binding name as denined in the kubevirt CR. version: 1alphav1

.spec.template.spec.domain.devices.interfaces[].bridge

Description
InterfaceBridge connects to a given network via a linux bridge.
Type
object

.spec.template.spec.domain.devices.interfaces[].dhcpOptions

Description
If specified the network interface will pass additional DHCP options to the VMI
Type
object
PropertyTypeDescription
bootFileNamestring

If specified will pass option 67 to interface's DHCP server

ntpServersarray

If specified will pass the configured NTP server to the VM via DHCP option 042.

privateOptionsarray

If specified will pass extra DHCP options for private use, range: 224-254

tftpServerNamestring

If specified will pass option 66 to interface's DHCP server

.spec.template.spec.domain.devices.interfaces[].dhcpOptions.ntpServers

Description
If specified will pass the configured NTP server to the VM via DHCP option 042.
Type
array

.spec.template.spec.domain.devices.interfaces[].dhcpOptions.ntpServers[]

Type
string

.spec.template.spec.domain.devices.interfaces[].dhcpOptions.privateOptions

Description
If specified will pass extra DHCP options for private use, range: 224-254
Type
array

.spec.template.spec.domain.devices.interfaces[].dhcpOptions.privateOptions[]

Description
DHCPExtraOptions defines Extra DHCP options for a VM.
Type
object
Required
optionvalue
PropertyTypeDescription
optioninteger

Option is an Integer value from 224-254 Required.

valuestring

Value is a String value for the Option provided Required.

.spec.template.spec.domain.devices.interfaces[].macvtap

Description
DeprecatedMacvtap is an alias to the deprecated Macvtap interface, please refer to Kubevirt user guide for alternatives. Deprecated: Removed in v1.3
Type
object

.spec.template.spec.domain.devices.interfaces[].masquerade

Description
InterfaceMasquerade connects to a given network using netfilter rules to nat the traffic.
Type
object

.spec.template.spec.domain.devices.interfaces[].passt

Description
DeprecatedPasst is an alias to the deprecated Passt interface, please refer to Kubevirt user guide for alternatives. Deprecated: Removed in v1.3
Type
object

.spec.template.spec.domain.devices.interfaces[].ports

Description
List of ports to be forwarded to the virtual machine.
Type
array

.spec.template.spec.domain.devices.interfaces[].ports[]

Description
Port represents a port to expose from the virtual machine. Default protocol TCP. The port field is mandatory
Type
object
Required
port
PropertyTypeDescription
namestring

If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.

portinteger

Number of port to expose for the virtual machine. This must be a valid port number, 0 < x < 65536.

protocolstring

Protocol for port. Must be UDP or TCP. Defaults to "TCP".

.spec.template.spec.domain.devices.interfaces[].slirp

Description
DeprecatedSlirp is an alias to the deprecated Slirp interface Deprecated: Removed in v1.3
Type
object

.spec.template.spec.domain.devices.interfaces[].sriov

Description
InterfaceSRIOV connects to a given network by passing-through an SR-IOV PCI device via vfio.
Type
object

.spec.template.spec.domain.devices.panicDevices

Description
PanicDevices provides additional crash information when a guest crashes.
Type
array

.spec.template.spec.domain.devices.panicDevices[]

Type
object
PropertyTypeDescription
modelstring

Model specifies what type of panic device is provided. The panic model used when this attribute is missing depends on the hypervisor and guest arch. One of: isa, hyperv, pvpanic.

.spec.template.spec.domain.devices.rng

Description
Whether to have random number generator from host
Type
object

.spec.template.spec.domain.devices.sound

Description
Whether to emulate a sound device.
Type
object
Required
name
PropertyTypeDescription
modelstring

We only support ich9 or ac97. If SoundDevice is not set: No sound card is emulated. If SoundDevice is set but Model is not: ich9

namestring

User's defined name for this sound device

.spec.template.spec.domain.devices.tpm

Description
Whether to emulate a TPM device.
Type
object
PropertyTypeDescription
enabledboolean

Enabled allows a user to explicitly disable the vTPM even when one is enabled by a preference referenced by the VirtualMachine Defaults to True

persistentboolean

Persistent indicates the state of the TPM device should be kept accross reboots Defaults to false

.spec.template.spec.domain.devices.video

Description
Video describes the video device configuration for the vmi.
Type
object
PropertyTypeDescription
typestring

Type specifies the video device type (e.g., virtio, vga, bochs, ramfb). If not specified, the default is architecture-dependent (VGA for BIOS-based VMs, Bochs for EFI-based VMs on AMD64; virtio for Arm and s390x).

.spec.template.spec.domain.devices.watchdog

Description
Watchdog describes a watchdog device which can be added to the vmi.
Type
object
Required
name
PropertyTypeDescription
diag288object

diag288 watchdog device (specific to s390x architecture).

i6300esbobject

i6300esb watchdog device.

namestring

Name of the watchdog.

.spec.template.spec.domain.devices.watchdog.diag288

Description
diag288 watchdog device (specific to s390x architecture).
Type
object
PropertyTypeDescription
actionstring

The action to take. Valid values are poweroff, reset, shutdown. Defaults to reset.

.spec.template.spec.domain.devices.watchdog.i6300esb

Description
i6300esb watchdog device.
Type
object
PropertyTypeDescription
actionstring

The action to take. Valid values are poweroff, reset, shutdown. Defaults to reset.

.spec.template.spec.domain.features

Description
Features like acpi, apic, hyperv, smm.
Type
object
PropertyTypeDescription
acpiobject

ACPI enables/disables ACPI inside the guest. Defaults to enabled.

apicobject

Defaults to the machine type setting.

hypervobject

Defaults to the machine type setting.

hypervPassthroughobject

This enables all supported hyperv flags automatically. Bear in mind that if this enabled hyperV features cannot be enabled explicitly. In addition, a Virtual Machine using it will be non-migratable.

kvmobject

Configure how KVM presence is exposed to the guest.

pvspinlockobject

Notify the guest that the host supports paravirtual spinlocks. For older kernels this feature should be explicitly disabled.

smmobject

SMM enables/disables System Management Mode. TSEG not yet implemented.

.spec.template.spec.domain.features.acpi

Description
ACPI enables/disables ACPI inside the guest. Defaults to enabled.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.features.apic

Description
Defaults to the machine type setting.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

endOfInterruptboolean

EndOfInterrupt enables the end of interrupt notification in the guest. Defaults to false.

.spec.template.spec.domain.features.hyperv

Description
Defaults to the machine type setting.
Type
object
PropertyTypeDescription
evmcsobject

EVMCS Speeds up L2 vmexits, but disables other virtualization features. Requires vapic. Defaults to the machine type setting.

frequenciesobject

Frequencies improves the TSC clock source handling for Hyper-V on KVM. Defaults to the machine type setting.

ipiobject

IPI improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting.

reenlightenmentobject

Reenlightenment enables the notifications on TSC frequency changes. Defaults to the machine type setting.

relaxedobject

Relaxed instructs the guest OS to disable watchdog timeouts. Defaults to the machine type setting.

resetobject

Reset enables Hyperv reboot/reset for the vmi. Requires synic. Defaults to the machine type setting.

runtimeobject

Runtime improves the time accounting to improve scheduling in the guest. Defaults to the machine type setting.

spinlocksobject

Spinlocks allows to configure the spinlock retry attempts.

synicobject

SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting.

synictimerobject

SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting.

tlbflushobject

TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting.

vapicobject

VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting.

vendoridobject

VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting.

vpindexobject

VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting.

.spec.template.spec.domain.features.hyperv.evmcs

Description
EVMCS Speeds up L2 vmexits, but disables other virtualization features. Requires vapic. Defaults to the machine type setting.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.features.hyperv.frequencies

Description
Frequencies improves the TSC clock source handling for Hyper-V on KVM. Defaults to the machine type setting.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.features.hyperv.ipi

Description
IPI improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.features.hyperv.reenlightenment

Description
Reenlightenment enables the notifications on TSC frequency changes. Defaults to the machine type setting.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.features.hyperv.relaxed

Description
Relaxed instructs the guest OS to disable watchdog timeouts. Defaults to the machine type setting.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.features.hyperv.reset

Description
Reset enables Hyperv reboot/reset for the vmi. Requires synic. Defaults to the machine type setting.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.features.hyperv.runtime

Description
Runtime improves the time accounting to improve scheduling in the guest. Defaults to the machine type setting.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.features.hyperv.spinlocks

Description
Spinlocks allows to configure the spinlock retry attempts.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

spinlocksinteger

Retries indicates the number of retries. Must be a value greater or equal 4096. Defaults to 4096.

.spec.template.spec.domain.features.hyperv.synic

Description
SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.features.hyperv.synictimer

Description
SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting.
Type
object
PropertyTypeDescription
directobject

Represents if a feature is enabled or disabled.

enabledboolean

.spec.template.spec.domain.features.hyperv.synictimer.direct

Description
Represents if a feature is enabled or disabled.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.features.hyperv.tlbflush

Description
TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.features.hyperv.vapic

Description
VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.features.hyperv.vendorid

Description
VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

vendoridstring

VendorID sets the hypervisor vendor id, visible to the vmi. String up to twelve characters.

.spec.template.spec.domain.features.hyperv.vpindex

Description
VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.features.hypervPassthrough

Description
This enables all supported hyperv flags automatically. Bear in mind that if this enabled hyperV features cannot be enabled explicitly. In addition, a Virtual Machine using it will be non-migratable.
Type
object
PropertyTypeDescription
enabledboolean

.spec.template.spec.domain.features.kvm

Description
Configure how KVM presence is exposed to the guest.
Type
object
PropertyTypeDescription
hiddenboolean

Hide the KVM hypervisor from standard MSR based discovery. Defaults to false

.spec.template.spec.domain.features.pvspinlock

Description
Notify the guest that the host supports paravirtual spinlocks. For older kernels this feature should be explicitly disabled.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.features.smm

Description
SMM enables/disables System Management Mode. TSEG not yet implemented.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.spec.template.spec.domain.firmware

Description
Firmware.
Type
object
PropertyTypeDescription
acpiobject

Information that can be set in the ACPI table

bootloaderobject

Settings to control the bootloader that is used.

kernelBootobject

Settings to set the kernel for booting.

serialstring

The system-serial-number in SMBIOS

uuidstring

UUID reported by the vmi bios. Defaults to a random generated uid.

.spec.template.spec.domain.firmware.acpi

Description
Information that can be set in the ACPI table
Type
object
PropertyTypeDescription
msdmNameRefstring

Similar to SlicNameRef, another ACPI entry that is used in more recent Windows versions. The above points to the spec of MSDM too.

slicNameRefstring

SlicNameRef should match the volume name of a secret object. The data in the secret should be a binary blob that follows the ACPI SLIC standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85)

.spec.template.spec.domain.firmware.bootloader

Description
Settings to control the bootloader that is used.
Type
object
PropertyTypeDescription
biosobject

If set (default), BIOS will be used.

efiobject

If set, EFI will be used instead of BIOS.

.spec.template.spec.domain.firmware.bootloader.bios

Description
If set (default), BIOS will be used.
Type
object
PropertyTypeDescription
useSerialboolean

If set, the BIOS output will be transmitted over serial

.spec.template.spec.domain.firmware.bootloader.efi

Description
If set, EFI will be used instead of BIOS.
Type
object
PropertyTypeDescription
persistentboolean

If set to true, Persistent will persist the EFI NVRAM across reboots. Defaults to false

secureBootboolean

If set, SecureBoot will be enabled and the OVMF roms will be swapped for SecureBoot-enabled ones. Requires SMM to be enabled. Defaults to true

.spec.template.spec.domain.firmware.kernelBoot

Description
Settings to set the kernel for booting.
Type
object
PropertyTypeDescription
containerobject

Container defines the container that containes kernel artifacts

kernelArgsstring

Arguments to be passed to the kernel at boot time

.spec.template.spec.domain.firmware.kernelBoot.container

Description
Container defines the container that containes kernel artifacts
Type
object
Required
image
PropertyTypeDescription
imagestring

Image that contains initrd / kernel files.

imagePullPolicystring

Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images

imagePullSecretstring

ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist.

initrdPathstring

the fully-qualified path to the ramdisk image in the host OS

kernelPathstring

The fully-qualified path to the kernel image in the host OS

.spec.template.spec.domain.ioThreads

Description
IOThreads specifies the IOThreads options.
Type
object
PropertyTypeDescription
supplementalPoolThreadCountinteger

SupplementalPoolThreadCount specifies how many iothreads are allocated for the supplementalPool policy.

.spec.template.spec.domain.launchSecurity

Description
Launch Security setting of the vmi.
Type
object
PropertyTypeDescription
sevobject

AMD Secure Encrypted Virtualization (SEV).

snpobject

AMD SEV-SNP flags defined by the SEV-SNP specifications.

tdxobject

Intel Trust Domain Extensions (TDX).

.spec.template.spec.domain.launchSecurity.sev

Description
AMD Secure Encrypted Virtualization (SEV).
Type
object
PropertyTypeDescription
attestationobject

If specified, run the attestation process for a vmi.

dhCertstring

Base64 encoded guest owner's Diffie-Hellman key.

policyobject

Guest policy flags as defined in AMD SEV API specification. Note: due to security reasons it is not allowed to enable guest debugging. Therefore NoDebug flag is not exposed to users and is always true.

sessionstring

Base64 encoded session blob.

.spec.template.spec.domain.launchSecurity.sev.attestation

Description
If specified, run the attestation process for a vmi.
Type
object

.spec.template.spec.domain.launchSecurity.sev.policy

Description
Guest policy flags as defined in AMD SEV API specification. Note: due to security reasons it is not allowed to enable guest debugging. Therefore NoDebug flag is not exposed to users and is always true.
Type
object
PropertyTypeDescription
encryptedStateboolean

SEV-ES is required. Defaults to false.

.spec.template.spec.domain.launchSecurity.snp

Description
AMD SEV-SNP flags defined by the SEV-SNP specifications.
Type
object

.spec.template.spec.domain.launchSecurity.tdx

Description
Intel Trust Domain Extensions (TDX).
Type
object

.spec.template.spec.domain.machine

Description
Machine type.
Type
object
PropertyTypeDescription
typestring

QEMU machine type is the actual chipset of the VirtualMachineInstance.

.spec.template.spec.domain.memory

Description
Memory allow specifying the VMI memory features.
Type
object
PropertyTypeDescription
guest

Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified.

hugepagesobject

Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory.

maxGuest

MaxGuest allows to specify the maximum amount of memory which is visible inside the Guest OS. The delta between MaxGuest and Guest is the amount of memory that can be hot(un)plugged.

.spec.template.spec.domain.memory.hugepages

Description
Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory.
Type
object
PropertyTypeDescription
pageSizestring

PageSize specifies the hugepage size, for x86_64 architecture valid values are 1Gi and 2Mi.

.spec.template.spec.domain.resources

Description
Resources describes the Compute Resources required by this vmi.
Type
object
PropertyTypeDescription
limitsobject

Limits describes the maximum amount of compute resources allowed. Valid resource keys are "memory" and "cpu".

overcommitGuestOverheadboolean

Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the container's memory limit. This can lead to crashes if all memory is in use on a node. Defaults to false.

requestsobject

Requests is a description of the initial vmi resources. Valid resource keys are "memory" and "cpu".

.spec.template.spec.domain.resources.limits

Description
Limits describes the maximum amount of compute resources allowed. Valid resource keys are "memory" and "cpu".
Type
object

.spec.template.spec.domain.resources.requests

Description
Requests is a description of the initial vmi resources. Valid resource keys are "memory" and "cpu".
Type
object

.spec.template.spec.livenessProbe

Description
Periodic probe of VirtualMachineInstance liveness. VirtualmachineInstances will be stopped if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
Type
object
PropertyTypeDescription
execobject

One and only one of the following should be specified. Exec specifies the action to take, it will be executed on the guest through the qemu-guest-agent. If the guest agent is not available, this probe will fail.

failureThresholdinteger

Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

guestAgentPingobject

GuestAgentPing contacts the qemu-guest-agent for availability checks.

httpGetobject

HTTPGet specifies the http request to perform.

initialDelaySecondsinteger

Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

periodSecondsinteger

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.

successThresholdinteger

Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.

tcpSocketobject

TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported

timeoutSecondsinteger

Number of seconds after which the probe times out. For exec probes the timeout fails the probe but does not terminate the command running on the guest. This means a blocking command can result in an increasing load on the guest. A small buffer will be added to the resulting workload exec probe to compensate for delays caused by the qemu guest exec mechanism. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.spec.template.spec.livenessProbe.exec

Description
One and only one of the following should be specified. Exec specifies the action to take, it will be executed on the guest through the qemu-guest-agent. If the guest agent is not available, this probe will fail.
Type
object
PropertyTypeDescription
commandarray

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

.spec.template.spec.livenessProbe.exec.command

Description
Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
Type
array

.spec.template.spec.livenessProbe.exec.command[]

Type
string

.spec.template.spec.livenessProbe.guestAgentPing

Description
GuestAgentPing contacts the qemu-guest-agent for availability checks.
Type
object

.spec.template.spec.livenessProbe.httpGet

Description
HTTPGet specifies the http request to perform.
Type
object
Required
port
PropertyTypeDescription
hoststring

Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.

httpHeadersarray

Custom headers to set in the request. HTTP allows repeated headers.

pathstring

Path to access on the HTTP server.

port

Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.

schemestring

Scheme to use for connecting to the host. Defaults to HTTP.

.spec.template.spec.livenessProbe.httpGet.httpHeaders

Description
Custom headers to set in the request. HTTP allows repeated headers.
Type
array

.spec.template.spec.livenessProbe.httpGet.httpHeaders[]

Description
HTTPHeader describes a custom header to be used in HTTP probes
Type
object
Required
namevalue
PropertyTypeDescription
namestring

The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.

valuestring

The header field value

.spec.template.spec.livenessProbe.tcpSocket

Description
TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported
Type
object
Required
port
PropertyTypeDescription
hoststring

Optional: Host name to connect to, defaults to the pod IP.

port

Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.

.spec.template.spec.networks

Description
List of networks that can be attached to a vm's virtual interface.
Type
array

.spec.template.spec.networks[]

Description
Network represents a network type and a resource that should be connected to the vm.
Type
object
Required
name
PropertyTypeDescription
multusobject

Represents the multus cni network.

namestring

Network name. Must be a DNS_LABEL and unique within the vm. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

podobject

Represents the stock pod network interface.

.spec.template.spec.networks[].multus

Description
Represents the multus cni network.
Type
object
Required
networkName
PropertyTypeDescription
defaultboolean

Select the default network and add it to the multus-cni.io/default-network annotation.

networkNamestring

References to a NetworkAttachmentDefinition CRD object. Format: , /. If namespace is not specified, VMI namespace is assumed.

.spec.template.spec.networks[].pod

Description
Represents the stock pod network interface.
Type
object
PropertyTypeDescription
vmIPv6NetworkCIDRstring

IPv6 CIDR for the vm network. Defaults to fd10:0:2::/120 if not specified.

vmNetworkCIDRstring

CIDR for vm network. Default 10.0.2.0/24 if not specified.

.spec.template.spec.nodeSelector

Description
NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
Type
object

.spec.template.spec.readinessProbe

Description
Periodic probe of VirtualMachineInstance service readiness. VirtualmachineInstances will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
Type
object
PropertyTypeDescription
execobject

One and only one of the following should be specified. Exec specifies the action to take, it will be executed on the guest through the qemu-guest-agent. If the guest agent is not available, this probe will fail.

failureThresholdinteger

Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.

guestAgentPingobject

GuestAgentPing contacts the qemu-guest-agent for availability checks.

httpGetobject

HTTPGet specifies the http request to perform.

initialDelaySecondsinteger

Number of seconds after the VirtualMachineInstance has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

periodSecondsinteger

How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.

successThresholdinteger

Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.

tcpSocketobject

TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported

timeoutSecondsinteger

Number of seconds after which the probe times out. For exec probes the timeout fails the probe but does not terminate the command running on the guest. This means a blocking command can result in an increasing load on the guest. A small buffer will be added to the resulting workload exec probe to compensate for delays caused by the qemu guest exec mechanism. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes

.spec.template.spec.readinessProbe.exec

Description
One and only one of the following should be specified. Exec specifies the action to take, it will be executed on the guest through the qemu-guest-agent. If the guest agent is not available, this probe will fail.
Type
object
PropertyTypeDescription
commandarray

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

.spec.template.spec.readinessProbe.exec.command

Description
Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
Type
array

.spec.template.spec.readinessProbe.exec.command[]

Type
string

.spec.template.spec.readinessProbe.guestAgentPing

Description
GuestAgentPing contacts the qemu-guest-agent for availability checks.
Type
object

.spec.template.spec.readinessProbe.httpGet

Description
HTTPGet specifies the http request to perform.
Type
object
Required
port
PropertyTypeDescription
hoststring

Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.

httpHeadersarray

Custom headers to set in the request. HTTP allows repeated headers.

pathstring

Path to access on the HTTP server.

port

Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.

schemestring

Scheme to use for connecting to the host. Defaults to HTTP.

.spec.template.spec.readinessProbe.httpGet.httpHeaders

Description
Custom headers to set in the request. HTTP allows repeated headers.
Type
array

.spec.template.spec.readinessProbe.httpGet.httpHeaders[]

Description
HTTPHeader describes a custom header to be used in HTTP probes
Type
object
Required
namevalue
PropertyTypeDescription
namestring

The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.

valuestring

The header field value

.spec.template.spec.readinessProbe.tcpSocket

Description
TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported
Type
object
Required
port
PropertyTypeDescription
hoststring

Optional: Host name to connect to, defaults to the pod IP.

port

Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.

.spec.template.spec.resourceClaims

Description
ResourceClaims define which ResourceClaims must be allocated and reserved before the VMI, hence virt-launcher pod is allowed to start. The resources will be made available to the domain which consumes them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate in kubernetes https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/ This field should only be configured if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha.
Type
array

.spec.template.spec.resourceClaims[]

Description
PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.
Type
object
Required
name
PropertyTypeDescription
namestring

Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.

resourceClaimNamestring

ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.

Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.

resourceClaimTemplateNamestring

ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.

The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.

This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.

Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.

.spec.template.spec.tolerations

Description
If toleration is specified, obey all the toleration rules.
Type
array

.spec.template.spec.tolerations[]

Description
The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
Type
object
PropertyTypeDescription
effectstring

Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.

keystring

Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.

operatorstring

Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.

tolerationSecondsinteger

TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.

valuestring

Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.

.spec.template.spec.topologySpreadConstraints

Description
TopologySpreadConstraints describes how a group of VMIs will be spread across a given topology domains. K8s scheduler will schedule VMI pods in a way which abides by the constraints.
Type
array

.spec.template.spec.topologySpreadConstraints[]

Description
TopologySpreadConstraint specifies how to spread matching pods among the given topology.
Type
object
Required
maxSkewtopologyKeywhenUnsatisfiable
PropertyTypeDescription
labelSelectorobject

LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.

matchLabelKeysarray

MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.

This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).

maxSkewinteger

MaxSkew describes the degree to which pods may be unevenly distributed. When 'whenUnsatisfiable=DoNotSchedule', it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P |

  • if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1).
  • if MaxSkew is 2, incoming pod can be scheduled onto any zone. When 'whenUnsatisfiable=ScheduleAnyway', it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.
minDomainsinteger

MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.

For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.

nodeAffinityPolicystring

NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are:

  • Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.
  • Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.

If this value is nil, the behavior is equivalent to the Honor policy.

nodeTaintsPolicystring

NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are:

  • Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included.
  • Ignore: node taints are ignored. All nodes are included.

If this value is nil, the behavior is equivalent to the Ignore policy.

topologyKeystring

TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field.

whenUnsatisfiablestring

WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint.

  • DoNotSchedule (default) tells the scheduler not to schedule it.
  • ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it more imbalanced. It's a required field.

.spec.template.spec.topologySpreadConstraints[].labelSelector

Description
LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.
Type
object
PropertyTypeDescription
matchExpressionsarray

matchExpressions is a list of label selector requirements. The requirements are ANDed.

matchLabelsobject

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

.spec.template.spec.topologySpreadConstraints[].labelSelector.matchExpressions

Description
matchExpressions is a list of label selector requirements. The requirements are ANDed.
Type
array

.spec.template.spec.topologySpreadConstraints[].labelSelector.matchExpressions[]

Description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

key is the label key that the selector applies to.

operatorstring

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

valuesarray

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

.spec.template.spec.topologySpreadConstraints[].labelSelector.matchExpressions[].values

Description
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Type
array

.spec.template.spec.topologySpreadConstraints[].labelSelector.matchExpressions[].values[]

Type
string

.spec.template.spec.topologySpreadConstraints[].labelSelector.matchLabels

Description
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Type
object

.spec.template.spec.topologySpreadConstraints[].matchLabelKeys

Description
MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).
Type
array

.spec.template.spec.topologySpreadConstraints[].matchLabelKeys[]

Type
string

.spec.template.spec.volumes

Description
List of volumes that can be mounted by disks belonging to the vmi.
Type
array

.spec.template.spec.volumes[]

Description
Volume represents a named volume in a vmi.
Type
object
Required
name
PropertyTypeDescription
cloudInitConfigDriveobject

CloudInitConfigDrive represents a cloud-init Config Drive user-data source. The Config Drive data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html

cloudInitNoCloudobject

CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html

configMapobject

ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/

containerDiskobject

ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html

dataVolumeobject

DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image.

downwardAPIobject

DownwardAPI represents downward API about the pod that should populate this volume

downwardMetricsobject

DownwardMetrics adds a very small disk to VMIs which contains a limited view of host and guest metrics. The disk content is compatible with vhostmd (https://github.com/vhostmd/vhostmd) and vm-dump-metrics.

emptyDiskobject

EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html

ephemeralobject

Ephemeral is a special volume source that "wraps" specified source and provides copy-on-write image on top of it.

hostDiskobject

HostDisk represents a disk created on the cluster level

memoryDumpobject

MemoryDump is attached to the virt launcher and is populated with a memory dump of the vmi

namestring

Volume's name. Must be a DNS_LABEL and unique within the vmi. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

persistentVolumeClaimobject

PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

secretobject

SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/

serviceAccountobject

ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/

sysprepobject

Represents a Sysprep volume source.

.spec.template.spec.volumes[].cloudInitConfigDrive

Description
CloudInitConfigDrive represents a cloud-init Config Drive user-data source. The Config Drive data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html
Type
object
PropertyTypeDescription
networkDatastring

NetworkData contains config drive inline cloud-init networkdata.

networkDataBase64string

NetworkDataBase64 contains config drive cloud-init networkdata as a base64 encoded string.

networkDataSecretRefobject

NetworkDataSecretRef references a k8s secret that contains config drive networkdata.

secretRefobject

UserDataSecretRef references a k8s secret that contains config drive userdata.

userDatastring

UserData contains config drive inline cloud-init userdata.

userDataBase64string

UserDataBase64 contains config drive cloud-init userdata as a base64 encoded string.

.spec.template.spec.volumes[].cloudInitConfigDrive.networkDataSecretRef

Description
NetworkDataSecretRef references a k8s secret that contains config drive networkdata.
Type
object
PropertyTypeDescription
namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

.spec.template.spec.volumes[].cloudInitConfigDrive.secretRef

Description
UserDataSecretRef references a k8s secret that contains config drive userdata.
Type
object
PropertyTypeDescription
namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

.spec.template.spec.volumes[].cloudInitNoCloud

Description
CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html
Type
object
PropertyTypeDescription
networkDatastring

NetworkData contains NoCloud inline cloud-init networkdata.

networkDataBase64string

NetworkDataBase64 contains NoCloud cloud-init networkdata as a base64 encoded string.

networkDataSecretRefobject

NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata.

secretRefobject

UserDataSecretRef references a k8s secret that contains NoCloud userdata.

userDatastring

UserData contains NoCloud inline cloud-init userdata.

userDataBase64string

UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string.

.spec.template.spec.volumes[].cloudInitNoCloud.networkDataSecretRef

Description
NetworkDataSecretRef references a k8s secret that contains NoCloud networkdata.
Type
object
PropertyTypeDescription
namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

.spec.template.spec.volumes[].cloudInitNoCloud.secretRef

Description
UserDataSecretRef references a k8s secret that contains NoCloud userdata.
Type
object
PropertyTypeDescription
namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

.spec.template.spec.volumes[].configMap

Description
ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/
Type
object
PropertyTypeDescription
namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

optionalboolean

Specify whether the ConfigMap or it's keys must be defined

volumeLabelstring

The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are "cidata" (cloud-init), "config-2" (cloud-init) or "OEMDRV" (kickstart).

.spec.template.spec.volumes[].containerDisk

Description
ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html
Type
object
Required
image
PropertyTypeDescription
imagestring

Image is the name of the image with the embedded disk.

imagePullPolicystring

Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images

imagePullSecretstring

ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist.

pathstring

Path defines the path to disk file in the container

.spec.template.spec.volumes[].dataVolume

Description
DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image.
Type
object
Required
name
PropertyTypeDescription
hotpluggableboolean

Hotpluggable indicates whether the volume can be hotplugged and hotunplugged.

namestring

Name of both the DataVolume and the PVC in the same namespace.

.spec.template.spec.volumes[].downwardAPI

Description
DownwardAPI represents downward API about the pod that should populate this volume
Type
object
PropertyTypeDescription
fieldsarray

Fields is a list of downward API volume file

volumeLabelstring

The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are "cidata" (cloud-init), "config-2" (cloud-init) or "OEMDRV" (kickstart).

.spec.template.spec.volumes[].downwardAPI.fields

Description
Fields is a list of downward API volume file
Type
array

.spec.template.spec.volumes[].downwardAPI.fields[]

Description
DownwardAPIVolumeFile represents information to create the file containing the pod field
Type
object
Required
path
PropertyTypeDescription
fieldRefobject

Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.

modeinteger

Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

pathstring

Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'

resourceFieldRefobject

Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.

.spec.template.spec.volumes[].downwardAPI.fields[].fieldRef

Description
Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.
Type
object
Required
fieldPath
PropertyTypeDescription
apiVersionstring

Version of the schema the FieldPath is written in terms of, defaults to "v1".

fieldPathstring

Path of the field to select in the specified API version.

.spec.template.spec.volumes[].downwardAPI.fields[].resourceFieldRef

Description
Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
Type
object
Required
resource
PropertyTypeDescription
containerNamestring

Container name: required for volumes, optional for env vars

divisor

Specifies the output format of the exposed resources, defaults to "1"

resourcestring

Required: resource to select

.spec.template.spec.volumes[].downwardMetrics

Description
DownwardMetrics adds a very small disk to VMIs which contains a limited view of host and guest metrics. The disk content is compatible with vhostmd (https://github.com/vhostmd/vhostmd) and vm-dump-metrics.
Type
object

.spec.template.spec.volumes[].emptyDisk

Description
EmptyDisk represents a temporary disk which shares the vmis lifecycle. More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html
Type
object
Required
capacity
PropertyTypeDescription
capacity

Capacity of the sparse disk.

.spec.template.spec.volumes[].ephemeral

Description
Ephemeral is a special volume source that "wraps" specified source and provides copy-on-write image on top of it.
Type
object
PropertyTypeDescription
persistentVolumeClaimobject

PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

.spec.template.spec.volumes[].ephemeral.persistentVolumeClaim

Description
PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
Type
object
Required
claimName
PropertyTypeDescription
claimNamestring

claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

readOnlyboolean

readOnly Will force the ReadOnly setting in VolumeMounts. Default false.

.spec.template.spec.volumes[].hostDisk

Description
HostDisk represents a disk created on the cluster level
Type
object
Required
pathtype
PropertyTypeDescription
capacity

Capacity of the sparse disk

pathstring

The path to HostDisk image located on the cluster

sharedboolean

Shared indicate whether the path is shared between nodes

typestring

Contains information if disk.img exists or should be created allowed options are 'Disk' and 'DiskOrCreate'

.spec.template.spec.volumes[].memoryDump

Description
MemoryDump is attached to the virt launcher and is populated with a memory dump of the vmi
Type
object
Required
claimName
PropertyTypeDescription
claimNamestring

claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

hotpluggableboolean

Hotpluggable indicates whether the volume can be hotplugged and hotunplugged.

readOnlyboolean

readOnly Will force the ReadOnly setting in VolumeMounts. Default false.

.spec.template.spec.volumes[].persistentVolumeClaim

Description
PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
Type
object
Required
claimName
PropertyTypeDescription
claimNamestring

claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

hotpluggableboolean

Hotpluggable indicates whether the volume can be hotplugged and hotunplugged.

readOnlyboolean

readOnly Will force the ReadOnly setting in VolumeMounts. Default false.

.spec.template.spec.volumes[].secret

Description
SecretVolumeSource represents a reference to a secret data in the same namespace. More info: https://kubernetes.io/docs/concepts/configuration/secret/
Type
object
PropertyTypeDescription
optionalboolean

Specify whether the Secret or it's keys must be defined

secretNamestring

Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret

volumeLabelstring

The volume label of the resulting disk inside the VMI. Different bootstrapping mechanisms require different values. Typical values are "cidata" (cloud-init), "config-2" (cloud-init) or "OEMDRV" (kickstart).

.spec.template.spec.volumes[].serviceAccount

Description
ServiceAccountVolumeSource represents a reference to a service account. There can only be one volume of this type! More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
Type
object
PropertyTypeDescription
serviceAccountNamestring

Name of the service account in the pod's namespace to use. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/

.spec.template.spec.volumes[].sysprep

Description
Represents a Sysprep volume source.
Type
object
PropertyTypeDescription
configMapobject

ConfigMap references a ConfigMap that contains Sysprep answer file named autounattend.xml that should be attached as disk of CDROM type.

secretobject

Secret references a k8s Secret that contains Sysprep answer file named autounattend.xml that should be attached as disk of CDROM type.

.spec.template.spec.volumes[].sysprep.configMap

Description
ConfigMap references a ConfigMap that contains Sysprep answer file named autounattend.xml that should be attached as disk of CDROM type.
Type
object
PropertyTypeDescription
namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

.spec.template.spec.volumes[].sysprep.secret

Description
Secret references a k8s Secret that contains Sysprep answer file named autounattend.xml that should be attached as disk of CDROM type.
Type
object
PropertyTypeDescription
namestring

Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

.status

Description
Status holds the current state of the controller and brief information about its associated VirtualMachineInstance
Type
object
PropertyTypeDescription
changedBlockTrackingobject

ChangedBlockTracking represents the status of the changedBlockTracking

conditionsarray

Hold the state information of the VirtualMachine and its VirtualMachineInstance

createdboolean

Created indicates if the virtual machine is created in the cluster

desiredGenerationinteger

DesiredGeneration is the generation which is desired for the VMI. This will be used in comparisons with ObservedGeneration to understand when the VMI is out of sync. This will be changed at the same time as ObservedGeneration to remove errors which could occur if Generation is updated through an Update() before ObservedGeneration in Status.

instancetypeRefobject

InstancetypeRef captures the state of any referenced instance type from the VirtualMachine

memoryDumpRequestobject

MemoryDumpRequest tracks memory dump request phase and info of getting a memory dump to the given pvc

observedGenerationinteger

ObservedGeneration is the generation observed by the vmi when started.

preferenceRefobject

PreferenceRef captures the state of any referenced preference from the VirtualMachine

printableStatusstring

PrintableStatus is a human readable, high-level representation of the status of the virtual machine

readyboolean

Ready indicates if the virtual machine is running and ready

restoreInProgressstring

RestoreInProgress is the name of the VirtualMachineRestore currently executing

runStrategystring

RunStrategy tracks the last recorded RunStrategy used by the VM. This is needed to correctly process the next strategy (for now only the RerunOnFailure)

snapshotInProgressstring

SnapshotInProgress is the name of the VirtualMachineSnapshot currently executing

startFailureobject

StartFailure tracks consecutive VMI startup failures for the purposes of crash loop backoffs

stateChangeRequestsarray

StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one.

volumeRequestsarray

VolumeRequests indicates a list of volumes add or remove from the VMI template and hotplug on an active running VMI.

volumeSnapshotStatusesarray

VolumeSnapshotStatuses indicates a list of statuses whether snapshotting is supported by each volume.

volumeUpdateStateobject

VolumeUpdateState contains the information about the volumes set updates related to the volumeUpdateStrategy

.status.changedBlockTracking

Description
ChangedBlockTracking represents the status of the changedBlockTracking
Type
object
Required
state
PropertyTypeDescription
statestring

State represents the current CBT state

.status.conditions

Description
Hold the state information of the VirtualMachine and its VirtualMachineInstance
Type
array

.status.conditions[]

Description
VirtualMachineCondition represents the state of VirtualMachine
Type
object
Required
statustype
PropertyTypeDescription
lastProbeTimestring
lastTransitionTimestring
messagestring
reasonstring
statusstring
typestring

.status.instancetypeRef

Description
InstancetypeRef captures the state of any referenced instance type from the VirtualMachine
Type
object
PropertyTypeDescription
controllerRevisionRefobject

ControllerRef specifies the ControllerRevision storing a copy of the object captured when it is first seen by the VirtualMachine controller

inferFromVolumestring

InferFromVolume lists the name of a volume that should be used to infer or discover the resource

inferFromVolumeFailurePolicystring

InferFromVolumeFailurePolicy controls what should happen on failure when inferring the resource

kindstring

Kind specifies the kind of resource

namestring

Name is the name of resource

.status.instancetypeRef.controllerRevisionRef

Description
ControllerRef specifies the ControllerRevision storing a copy of the object captured when it is first seen by the VirtualMachine controller
Type
object
PropertyTypeDescription
namestring

Name of the ControllerRevision

.status.memoryDumpRequest

Description
MemoryDumpRequest tracks memory dump request phase and info of getting a memory dump to the given pvc
Type
object
Required
claimNamephase
PropertyTypeDescription
claimNamestring

ClaimName is the name of the pvc that will contain the memory dump

endTimestampstring

EndTimestamp represents the time the memory dump was completed

fileNamestring

FileName represents the name of the output file

messagestring

Message is a detailed message about failure of the memory dump

phasestring

Phase represents the memory dump phase

removeboolean

Remove represents request of dissociating the memory dump pvc

startTimestampstring

StartTimestamp represents the time the memory dump started

.status.preferenceRef

Description
PreferenceRef captures the state of any referenced preference from the VirtualMachine
Type
object
PropertyTypeDescription
controllerRevisionRefobject

ControllerRef specifies the ControllerRevision storing a copy of the object captured when it is first seen by the VirtualMachine controller

inferFromVolumestring

InferFromVolume lists the name of a volume that should be used to infer or discover the resource

inferFromVolumeFailurePolicystring

InferFromVolumeFailurePolicy controls what should happen on failure when inferring the resource

kindstring

Kind specifies the kind of resource

namestring

Name is the name of resource

.status.preferenceRef.controllerRevisionRef

Description
ControllerRef specifies the ControllerRevision storing a copy of the object captured when it is first seen by the VirtualMachine controller
Type
object
PropertyTypeDescription
namestring

Name of the ControllerRevision

.status.startFailure

Description
StartFailure tracks consecutive VMI startup failures for the purposes of crash loop backoffs
Type
object
PropertyTypeDescription
consecutiveFailCountinteger
lastFailedVMIUIDstring

UID is a type that holds unique ID values, including UUIDs. Because we don't ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated.

retryAfterTimestampstring

.status.stateChangeRequests

Description
StateChangeRequests indicates a list of actions that should be taken on a VMI e.g. stop a specific VMI then start a new one.
Type
array

.status.stateChangeRequests[]

Type
object
Required
action
PropertyTypeDescription
actionstring

Indicates the type of action that is requested. e.g. Start or Stop

dataobject

Provides additional data in order to perform the Action

uidstring

Indicates the UUID of an existing Virtual Machine Instance that this change request applies to -- if applicable

.status.stateChangeRequests[].data

Description
Provides additional data in order to perform the Action
Type
object

.status.volumeRequests

Description
VolumeRequests indicates a list of volumes add or remove from the VMI template and hotplug on an active running VMI.
Type
array

.status.volumeRequests[]

Type
object
PropertyTypeDescription
addVolumeOptionsobject

AddVolumeOptions when set indicates a volume should be added. The details within this field specify how to add the volume

removeVolumeOptionsobject

RemoveVolumeOptions when set indicates a volume should be removed. The details within this field specify how to add the volume

.status.volumeRequests[].addVolumeOptions

Description
AddVolumeOptions when set indicates a volume should be added. The details within this field specify how to add the volume
Type
object
Required
disknamevolumeSource
PropertyTypeDescription
diskobject

Disk represents the hotplug disk that will be plugged into the running VMI

dryRunarray

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are:

  • All: all dry run stages will be processed
namestring

Name represents the name that will be used to map the disk to the corresponding volume. This overrides any name set inside the Disk struct itself.

volumeSourceobject

VolumeSource represents the source of the volume to map to the disk.

.status.volumeRequests[].addVolumeOptions.disk

Description
Disk represents the hotplug disk that will be plugged into the running VMI
Type
object
Required
name
PropertyTypeDescription
blockSizeobject

If specified, the virtual disk will be presented with the given block sizes.

bootOrderinteger

BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists.

cachestring

Cache specifies which kvm disk cache mode should be used. Supported values are: none: Guest I/O not cached on the host, but may be kept in a disk cache. writethrough: Guest I/O cached on the host but written through to the physical medium. Slowest but with most guarantees. writeback: Guest I/O cached on the host. Defaults to none if the storage supports O_DIRECT, otherwise writethrough.

cdromobject

Attach a volume as a cdrom to the vmi.

changedBlockTrackingboolean

ChangedBlockTracking indicates this disk should have CBT option Defaults to false.

dedicatedIOThreadboolean

dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false.

diskobject

Attach a volume as a disk to the vmi.

errorPolicystring

If specified, it can change the default error policy (stop) for the disk

iostring

IO specifies which QEMU disk IO mode should be used. Supported values are: native, default, threads.

lunobject

Attach a volume as a LUN to the vmi.

namestring

Name is the device name

serialstring

Serial provides the ability to specify a serial number for the disk device.

shareableboolean

If specified the disk is made sharable and multiple write from different VMs are permitted

tagstring

If specified, disk address and its tag will be provided to the guest via config drive metadata

.status.volumeRequests[].addVolumeOptions.disk.blockSize

Description
If specified, the virtual disk will be presented with the given block sizes.
Type
object
PropertyTypeDescription
customobject

CustomBlockSize represents the desired logical and physical block size for a VM disk.

matchVolumeobject

Represents if a feature is enabled or disabled.

.status.volumeRequests[].addVolumeOptions.disk.blockSize.custom

Description
CustomBlockSize represents the desired logical and physical block size for a VM disk.
Type
object
PropertyTypeDescription
discardGranularityinteger
logicalinteger
physicalinteger

.status.volumeRequests[].addVolumeOptions.disk.blockSize.matchVolume

Description
Represents if a feature is enabled or disabled.
Type
object
PropertyTypeDescription
enabledboolean

Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true.

.status.volumeRequests[].addVolumeOptions.disk.cdrom

Description
Attach a volume as a cdrom to the vmi.
Type
object
PropertyTypeDescription
busstring

Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi.

readonlyboolean

ReadOnly. Defaults to true.

traystring

Tray indicates if the tray of the device is open or closed. Allowed values are "open" and "closed". Defaults to closed.

.status.volumeRequests[].addVolumeOptions.disk.disk

Description
Attach a volume as a disk to the vmi.
Type
object
PropertyTypeDescription
busstring

Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi, usb.

pciAddressstring

If specified, the virtual disk will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10

readonlyboolean

ReadOnly. Defaults to false.

.status.volumeRequests[].addVolumeOptions.disk.lun

Description
Attach a volume as a LUN to the vmi.
Type
object
PropertyTypeDescription
busstring

Bus indicates the type of disk device to emulate. supported values: virtio, sata, scsi.

readonlyboolean

ReadOnly. Defaults to false.

reservationboolean

Reservation indicates if the disk needs to support the persistent reservation for the SCSI disk

.status.volumeRequests[].addVolumeOptions.dryRun

Description
When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
Type
array

.status.volumeRequests[].addVolumeOptions.dryRun[]

Type
string

.status.volumeRequests[].addVolumeOptions.volumeSource

Description
VolumeSource represents the source of the volume to map to the disk.
Type
object
PropertyTypeDescription
dataVolumeobject

DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image.

persistentVolumeClaimobject

PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

.status.volumeRequests[].addVolumeOptions.volumeSource.dataVolume

Description
DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image.
Type
object
Required
name
PropertyTypeDescription
hotpluggableboolean

Hotpluggable indicates whether the volume can be hotplugged and hotunplugged.

namestring

Name of both the DataVolume and the PVC in the same namespace.

.status.volumeRequests[].addVolumeOptions.volumeSource.persistentVolumeClaim

Description
PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. Directly attached to the vmi via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
Type
object
Required
claimName
PropertyTypeDescription
claimNamestring

claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

hotpluggableboolean

Hotpluggable indicates whether the volume can be hotplugged and hotunplugged.

readOnlyboolean

readOnly Will force the ReadOnly setting in VolumeMounts. Default false.

.status.volumeRequests[].removeVolumeOptions

Description
RemoveVolumeOptions when set indicates a volume should be removed. The details within this field specify how to add the volume
Type
object
Required
name
PropertyTypeDescription
dryRunarray

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are:

  • All: all dry run stages will be processed
namestring

Name represents the name that maps to both the disk and volume that should be removed

.status.volumeRequests[].removeVolumeOptions.dryRun

Description
When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
Type
array

.status.volumeRequests[].removeVolumeOptions.dryRun[]

Type
string

.status.volumeSnapshotStatuses

Description
VolumeSnapshotStatuses indicates a list of statuses whether snapshotting is supported by each volume.
Type
array

.status.volumeSnapshotStatuses[]

Type
object
Required
enabledname
PropertyTypeDescription
enabledboolean

True if the volume supports snapshotting

namestring

Volume name

reasonstring

Empty if snapshotting is enabled, contains reason otherwise

.status.volumeUpdateState

Description
VolumeUpdateState contains the information about the volumes set updates related to the volumeUpdateStrategy
Type
object
PropertyTypeDescription
volumeMigrationStateobject

VolumeMigrationState tracks the information related to the volume migration

.status.volumeUpdateState.volumeMigrationState

Description
VolumeMigrationState tracks the information related to the volume migration
Type
object
PropertyTypeDescription
migratedVolumesarray

MigratedVolumes lists the source and destination volumes during the volume migration

.status.volumeUpdateState.volumeMigrationState.migratedVolumes

Description
MigratedVolumes lists the source and destination volumes during the volume migration
Type
array

.status.volumeUpdateState.volumeMigrationState.migratedVolumes[]

Description
StorageMigratedVolumeInfo tracks the information about the source and destination volumes during the volume migration
Type
object
Required
volumeName
PropertyTypeDescription
destinationPVCInfoobject

DestinationPVCInfo contains the information about the destination PVC

sourcePVCInfoobject

SourcePVCInfo contains the information about the source PVC

volumeNamestring

VolumeName is the name of the volume that is being migrated

.status.volumeUpdateState.volumeMigrationState.migratedVolumes[].destinationPVCInfo

Description
DestinationPVCInfo contains the information about the destination PVC
Type
object
PropertyTypeDescription
accessModesarray

AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1

capacityobject

Capacity represents the capacity set on the corresponding PVC status

claimNamestring

ClaimName is the name of the PVC

filesystemOverheadstring

Percentage of filesystem's size to be reserved when resizing the PVC

preallocatedboolean

Preallocated indicates if the PVC's storage is preallocated or not

requestsobject

Requests represents the resources requested by the corresponding PVC spec

volumeModestring

VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.

.status.volumeUpdateState.volumeMigrationState.migratedVolumes[].destinationPVCInfo.accessModes

Description
AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
Type
array

.status.volumeUpdateState.volumeMigrationState.migratedVolumes[].destinationPVCInfo.accessModes[]

Type
string

.status.volumeUpdateState.volumeMigrationState.migratedVolumes[].destinationPVCInfo.capacity

Description
Capacity represents the capacity set on the corresponding PVC status
Type
object

.status.volumeUpdateState.volumeMigrationState.migratedVolumes[].destinationPVCInfo.requests

Description
Requests represents the resources requested by the corresponding PVC spec
Type
object

.status.volumeUpdateState.volumeMigrationState.migratedVolumes[].sourcePVCInfo

Description
SourcePVCInfo contains the information about the source PVC
Type
object
PropertyTypeDescription
accessModesarray

AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1

capacityobject

Capacity represents the capacity set on the corresponding PVC status

claimNamestring

ClaimName is the name of the PVC

filesystemOverheadstring

Percentage of filesystem's size to be reserved when resizing the PVC

preallocatedboolean

Preallocated indicates if the PVC's storage is preallocated or not

requestsobject

Requests represents the resources requested by the corresponding PVC spec

volumeModestring

VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.

.status.volumeUpdateState.volumeMigrationState.migratedVolumes[].sourcePVCInfo.accessModes

Description
AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
Type
array

.status.volumeUpdateState.volumeMigrationState.migratedVolumes[].sourcePVCInfo.accessModes[]

Type
string

.status.volumeUpdateState.volumeMigrationState.migratedVolumes[].sourcePVCInfo.capacity

Description
Capacity represents the capacity set on the corresponding PVC status
Type
object

.status.volumeUpdateState.volumeMigrationState.migratedVolumes[].sourcePVCInfo.requests

Description
Requests represents the resources requested by the corresponding PVC spec
Type
object

API Endpoints

The following API endpoints are available:

  • /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines
    • DELETE: delete collection of VirtualMachine
    • GET: list objects of kind VirtualMachine
    • POST: create a new VirtualMachine
  • /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}
    • DELETE: delete the specified VirtualMachine
    • GET: read the specified VirtualMachine
    • PATCH: partially update the specified VirtualMachine
    • PUT: replace the specified VirtualMachine
  • /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/status
    • GET: read status of the specified VirtualMachine
    • PATCH: partially update status of the specified VirtualMachine
    • PUT: replace status of the specified VirtualMachine

/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines

HTTP method
DELETE
Description
delete collection of VirtualMachine
HTTP responses
HTTP codeResponse body
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP method
GET
Description
list objects of kind VirtualMachine
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineList schema
401 - UnauthorizedEmpty
HTTP method
POST
Description
create a new VirtualMachine
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
Body parameters
ParameterTypeDescription
bodyVirtualMachine schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachine schema
201 - CreatedVirtualMachine schema
202 - AcceptedVirtualMachine schema
401 - UnauthorizedEmpty

/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}

HTTP method
DELETE
Description
delete the specified VirtualMachine
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
HTTP responses
HTTP codeResponse body
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP method
GET
Description
read the specified VirtualMachine
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachine schema
401 - UnauthorizedEmpty
HTTP method
PATCH
Description
partially update the specified VirtualMachine
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachine schema
401 - UnauthorizedEmpty
HTTP method
PUT
Description
replace the specified VirtualMachine
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
Body parameters
ParameterTypeDescription
bodyVirtualMachine schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachine schema
201 - CreatedVirtualMachine schema
401 - UnauthorizedEmpty

/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/status

HTTP method
GET
Description
read status of the specified VirtualMachine
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachine schema
401 - UnauthorizedEmpty
HTTP method
PATCH
Description
partially update status of the specified VirtualMachine
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachine schema
401 - UnauthorizedEmpty
HTTP method
PUT
Description
replace status of the specified VirtualMachine
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
Body parameters
ParameterTypeDescription
bodyVirtualMachine schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachine schema
201 - CreatedVirtualMachine schema
401 - UnauthorizedEmpty