VirtualMachineInstance [virtualmachineinstances.kubevirt.io/v1]

Description
VirtualMachineInstance is *the* VirtualMachineInstance Definition. It represents a virtual machine in the runtime environment of kubernetes.
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

VirtualMachineInstance Spec contains the VirtualMachineInstance specification.

statusobject

Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users.

.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.accessCredentials

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

.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.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.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.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.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.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.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.accessCredentials[].sshPublicKey.propagationMethod.qemuGuestAgent.users[]

Type
string

.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.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.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.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.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.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.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.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.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.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.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.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.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions

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

.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.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.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[].values[]

Type
string

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

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

.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.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.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[].values[]

Type
string

.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.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms

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

.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.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions

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

.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.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.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[].values[]

Type
string

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

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

.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.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.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[].values[]

Type
string

.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.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.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.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.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.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions

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

.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.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.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values[]

Type
string

.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.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.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys[]

Type
string

.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.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys[]

Type
string

.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.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions

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

.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.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.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values[]

Type
string

.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.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.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces[]

Type
string

.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.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.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.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions

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

.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.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.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values[]

Type
string

.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.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.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys[]

Type
string

.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.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys[]

Type
string

.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.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions

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

.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.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.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values[]

Type
string

.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.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.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces[]

Type
string

.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.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.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.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.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.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions

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

.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.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.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values[]

Type
string

.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.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.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys[]

Type
string

.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.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys[]

Type
string

.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.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions

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

.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.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.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values[]

Type
string

.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.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.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces[]

Type
string

.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.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.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.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions

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

.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.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.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values[]

Type
string

.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.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.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys[]

Type
string

.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.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys[]

Type
string

.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.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions

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

.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.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.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values[]

Type
string

.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.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.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces[]

Type
string

.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.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.dnsConfig.nameservers[]

Type
string

.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.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.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.dnsConfig.searches[]

Type
string

.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.domain.chassis

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

.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.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.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.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.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.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.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.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.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.domain.cpu.features

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

.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.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.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.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.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.domain.devices.clientPassthrough

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

.spec.domain.devices.disks

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

.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.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.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.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.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.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.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.domain.devices.downwardMetrics

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

.spec.domain.devices.filesystems

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

.spec.domain.devices.filesystems[]

Type
object
Required
namevirtiofs
PropertyTypeDescription
namestring

Name is the device name

virtiofsobject

Virtiofs is supported

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

Description
Virtiofs is supported
Type
object

.spec.domain.devices.gpus

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

.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.domain.devices.gpus[].virtualGPUOptions

Type
object
PropertyTypeDescription
displayobject

.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.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.domain.devices.hostDevices

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

.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.domain.devices.inputs

Description
Inputs describe input devices
Type
array

.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.domain.devices.interfaces

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

.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.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.domain.devices.interfaces[].bridge

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

.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.domain.devices.interfaces[].dhcpOptions.ntpServers

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

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

Type
string

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

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

.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.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.domain.devices.interfaces[].masquerade

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

.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.domain.devices.interfaces[].ports

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

.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.domain.devices.interfaces[].slirp

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

.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.domain.devices.panicDevices

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

.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.domain.devices.rng

Description
Whether to have random number generator from host
Type
object

.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.domain.ioThreads

Description
IOThreads specifies the IOThreads options.
Type
object
PropertyTypeDescription
supplementalPoolThreadCountinteger

SupplementalPoolThreadCount specifies how many iothreads are allocated for the supplementalPool policy.

.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.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.domain.launchSecurity.sev.attestation

Description
If specified, run the attestation process for a vmi.
Type
object

.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.domain.launchSecurity.snp

Description
AMD SEV-SNP flags defined by the SEV-SNP specifications.
Type
object

.spec.domain.launchSecurity.tdx

Description
Intel Trust Domain Extensions (TDX).
Type
object

.spec.domain.machine

Description
Machine type.
Type
object
PropertyTypeDescription
typestring

QEMU machine type is the actual chipset of the VirtualMachineInstance.

.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.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.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.domain.resources.limits

Description
Limits describes the maximum amount of compute resources allowed. Valid resource keys are "memory" and "cpu".
Type
object

.spec.domain.resources.requests

Description
Requests is a description of the initial vmi resources. Valid resource keys are "memory" and "cpu".
Type
object

.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.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.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.livenessProbe.exec.command[]

Type
string

.spec.livenessProbe.guestAgentPing

Description
GuestAgentPing contacts the qemu-guest-agent for availability checks.
Type
object

.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.livenessProbe.httpGet.httpHeaders

Description
Custom headers to set in the request. HTTP allows repeated headers.
Type
array

.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.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.networks

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

.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.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.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.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.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.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.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.readinessProbe.exec.command[]

Type
string

.spec.readinessProbe.guestAgentPing

Description
GuestAgentPing contacts the qemu-guest-agent for availability checks.
Type
object

.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.readinessProbe.httpGet.httpHeaders

Description
Custom headers to set in the request. HTTP allows repeated headers.
Type
array

.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.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.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.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.tolerations

Description
If toleration is specified, obey all the toleration rules.
Type
array

.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.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.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.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.topologySpreadConstraints[].labelSelector.matchExpressions

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

.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.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.topologySpreadConstraints[].labelSelector.matchExpressions[].values[]

Type
string

.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.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.topologySpreadConstraints[].matchLabelKeys[]

Type
string

.spec.volumes

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

.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.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.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.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.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.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.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.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.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.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.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.volumes[].downwardAPI.fields

Description
Fields is a list of downward API volume file
Type
array

.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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 is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users.
Type
object
PropertyTypeDescription
VSOCKCIDinteger

VSOCKCID is used to track the allocated VSOCK CID in the VM.

activePodsobject

ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration.

changedBlockTrackingobject

ChangedBlockTracking represents the status of the changedBlockTracking

conditionsarray

Conditions are specific points in VirtualMachineInstance's pod runtime.

currentCPUTopologyobject

CurrentCPUTopology specifies the current CPU topology used by the VM workload. Current topology may differ from the desired topology in the spec while CPU hotplug takes place.

deviceStatusobject

DeviceStatus reflects the state of devices requested in spec.domain.devices. This is an optional field available only when DRA feature gate is enabled This field will only be populated if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha.

evacuationNodeNamestring

EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users.

fsFreezeStatusstring

FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to "frozen" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem.

guestOSInfoobject

Guest OS Information

interfacesarray

Interfaces represent the details of available network interfaces.

kernelBootStatusobject

KernelBootStatus contains info about the kernelBootContainer

launcherContainerImageVersionstring

LauncherContainerImageVersion indicates what container image is currently active for the vmi.

machineobject

Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism.

memoryobject

Memory shows various informations about the VirtualMachine memory.

migratedVolumesarray

MigratedVolumes lists the source and destination volumes during the volume migration

migrationMethodstring

Represents the method using which the vmi can be migrated: live migration or block migration

migrationStateobject

Represents the status of a live migration

migrationTransportstring

This represents the migration transport

nodeNamestring

NodeName is the name where the VirtualMachineInstance is currently running.

phasestring

Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it.

phaseTransitionTimestampsarray

PhaseTransitionTimestamp is the timestamp of when the last phase change occurred

qosClassstring

The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md

reasonstring

A brief CamelCase message indicating details about why the VMI is in this state. e.g. 'NodeUnresponsive'

runtimeUserinteger

RuntimeUser is used to determine what user will be used in launcher

selinuxContextstring

SELinuxContext is the actual SELinux context of the virt-launcher pod

topologyHintsobject
virtualMachineRevisionNamestring

VirtualMachineRevisionName is used to get the vm revision of the vmi when doing an online vm snapshot

volumeStatusarray

VolumeStatus contains the statuses of all the volumes

.status.activePods

Description
ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration.
Type
object

.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
Conditions are specific points in VirtualMachineInstance's pod runtime.
Type
array

.status.conditions[]

Type
object
Required
statustype
PropertyTypeDescription
lastProbeTimestring
lastTransitionTimestring
messagestring
reasonstring
statusstring
typestring

.status.currentCPUTopology

Description
CurrentCPUTopology specifies the current CPU topology used by the VM workload. Current topology may differ from the desired topology in the spec while CPU hotplug takes place.
Type
object
PropertyTypeDescription
coresinteger

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

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.

.status.deviceStatus

Description
DeviceStatus reflects the state of devices requested in spec.domain.devices. This is an optional field available only when DRA feature gate is enabled This field will only be populated if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha.
Type
object
PropertyTypeDescription
gpuStatusesarray

GPUStatuses reflects the state of GPUs requested in spec.domain.devices.gpus

hostDeviceStatusesarray

HostDeviceStatuses reflects the state of GPUs requested in spec.domain.devices.hostDevices DRA

.status.deviceStatus.gpuStatuses

Description
GPUStatuses reflects the state of GPUs requested in spec.domain.devices.gpus
Type
array

.status.deviceStatus.gpuStatuses[]

Type
object
Required
name
PropertyTypeDescription
deviceResourceClaimStatusobject

DeviceResourceClaimStatus reflects the DRA related information for the device

namestring

Name of the device as specified in spec.domain.devices.gpus.name or spec.domain.devices.hostDevices.name

.status.deviceStatus.gpuStatuses[].deviceResourceClaimStatus

Description
DeviceResourceClaimStatus reflects the DRA related information for the device
Type
object
PropertyTypeDescription
attributesobject

Attributes are properties of the device that could be used by kubevirt and other copmonents to learn more about the device, like pciAddress or mdevUUID

namestring

Name is the name of actual device on the host provisioned by the driver as reflected in resourceclaim.status

resourceClaimNamestring

ResourceClaimName is the name of the resource claims object used to provision this resource

.status.deviceStatus.gpuStatuses[].deviceResourceClaimStatus.attributes

Description
Attributes are properties of the device that could be used by kubevirt and other copmonents to learn more about the device, like pciAddress or mdevUUID
Type
object
PropertyTypeDescription
mDevUUIDstring

MDevUUID is the mediated device uuid of the allocated device

pciAddressstring

PCIAddress is the PCIe bus address of the allocated device

.status.deviceStatus.hostDeviceStatuses

Description
HostDeviceStatuses reflects the state of GPUs requested in spec.domain.devices.hostDevices DRA
Type
array

.status.deviceStatus.hostDeviceStatuses[]

Type
object
Required
name
PropertyTypeDescription
deviceResourceClaimStatusobject

DeviceResourceClaimStatus reflects the DRA related information for the device

namestring

Name of the device as specified in spec.domain.devices.gpus.name or spec.domain.devices.hostDevices.name

.status.deviceStatus.hostDeviceStatuses[].deviceResourceClaimStatus

Description
DeviceResourceClaimStatus reflects the DRA related information for the device
Type
object
PropertyTypeDescription
attributesobject

Attributes are properties of the device that could be used by kubevirt and other copmonents to learn more about the device, like pciAddress or mdevUUID

namestring

Name is the name of actual device on the host provisioned by the driver as reflected in resourceclaim.status

resourceClaimNamestring

ResourceClaimName is the name of the resource claims object used to provision this resource

.status.deviceStatus.hostDeviceStatuses[].deviceResourceClaimStatus.attributes

Description
Attributes are properties of the device that could be used by kubevirt and other copmonents to learn more about the device, like pciAddress or mdevUUID
Type
object
PropertyTypeDescription
mDevUUIDstring

MDevUUID is the mediated device uuid of the allocated device

pciAddressstring

PCIAddress is the PCIe bus address of the allocated device

.status.guestOSInfo

Description
Guest OS Information
Type
object
PropertyTypeDescription
idstring

Guest OS Id

kernelReleasestring

Guest OS Kernel Release

kernelVersionstring

Kernel version of the Guest OS

machinestring

Machine type of the Guest OS

namestring

Name of the Guest OS

prettyNamestring

Guest OS Pretty Name

versionstring

Guest OS Version

versionIdstring

Version ID of the Guest OS

.status.interfaces

Description
Interfaces represent the details of available network interfaces.
Type
array

.status.interfaces[]

Type
object
PropertyTypeDescription
infoSourcestring

Specifies the origin of the interface data collected. values: domain, guest-agent, multus-status.

interfaceNamestring

The interface name inside the Virtual Machine

ipAddressstring

IP address of a Virtual Machine interface. It is always the first item of IPs

ipAddressesarray

List of all IP addresses of a Virtual Machine interface

linkStatestring

LinkState Reports the current operational link state'. values: up, down.

macstring

Hardware address of a Virtual Machine interface

namestring

Name of the interface, corresponds to name of the network assigned to the interface

podInterfaceNamestring

PodInterfaceName represents the name of the pod network interface

queueCountinteger

Specifies how many queues are allocated by MultiQueue

.status.interfaces[].ipAddresses

Description
List of all IP addresses of a Virtual Machine interface
Type
array

.status.interfaces[].ipAddresses[]

Type
string

.status.kernelBootStatus

Description
KernelBootStatus contains info about the kernelBootContainer
Type
object
PropertyTypeDescription
initrdInfoobject

InitrdInfo show info about the initrd file

kernelInfoobject

KernelInfo show info about the kernel image

.status.kernelBootStatus.initrdInfo

Description
InitrdInfo show info about the initrd file
Type
object
PropertyTypeDescription
checksuminteger

Checksum is the checksum of the initrd file

.status.kernelBootStatus.kernelInfo

Description
KernelInfo show info about the kernel image
Type
object
PropertyTypeDescription
checksuminteger

Checksum is the checksum of the kernel image

.status.machine

Description
Machine shows the final resulting qemu machine type. This can be different than the machine type selected in the spec, due to qemus machine type alias mechanism.
Type
object
PropertyTypeDescription
typestring

QEMU machine type is the actual chipset of the VirtualMachineInstance.

.status.memory

Description
Memory shows various informations about the VirtualMachine memory.
Type
object
PropertyTypeDescription
guestAtBoot

GuestAtBoot specifies with how much memory the VirtualMachine intiallly booted with.

guestCurrent

GuestCurrent specifies how much memory is currently available for the VirtualMachine.

guestRequested

GuestRequested specifies how much memory was requested (hotplug) for the VirtualMachine.

.status.migratedVolumes

Description
MigratedVolumes lists the source and destination volumes during the volume migration
Type
array

.status.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.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.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.migratedVolumes[].destinationPVCInfo.accessModes[]

Type
string

.status.migratedVolumes[].destinationPVCInfo.capacity

Description
Capacity represents the capacity set on the corresponding PVC status
Type
object

.status.migratedVolumes[].destinationPVCInfo.requests

Description
Requests represents the resources requested by the corresponding PVC spec
Type
object

.status.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.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.migratedVolumes[].sourcePVCInfo.accessModes[]

Type
string

.status.migratedVolumes[].sourcePVCInfo.capacity

Description
Capacity represents the capacity set on the corresponding PVC status
Type
object

.status.migratedVolumes[].sourcePVCInfo.requests

Description
Requests represents the resources requested by the corresponding PVC spec
Type
object

.status.migrationState

Description
Represents the status of a live migration
Type
object
PropertyTypeDescription
abortRequestedboolean

Indicates that the migration has been requested to abort

abortStatusstring

Indicates the final status of the live migration abortion

completedboolean

Indicates the migration completed

endTimestampstring

The time the migration action ended

failedboolean

Indicates that the migration failed

failureReasonstring

Contains the reason why the migration failed

migrationConfigurationobject

Migration configurations to apply

migrationNetworkTypestring

The type of migration network, either 'pod' or 'migration'

migrationPolicyNamestring

Name of the migration policy. If string is empty, no policy is matched

migrationUidstring

The VirtualMachineInstanceMigration object associated with this migration

modestring

Lets us know if the vmi is currently running pre or post copy migration

sourceNodestring

The source node that the VMI originated on

sourcePersistentStatePVCNamestring

If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here

sourcePodstring
sourceStateobject

SourceState contains migration state managed by the source virt handler

startTimestampstring

The time the migration action began

targetAttachmentPodUIDstring

The UID of the target attachment pod for hotplug volumes

targetCPUSetarray

If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node

targetDirectMigrationNodePortsobject

The list of ports opened for live migration on the destination node

targetNodestring

The target node that the VMI is moving to

targetNodeAddressstring

The address of the target node to use for the migration

targetNodeDomainDetectedboolean

The Target Node has seen the Domain Start Event

targetNodeDomainReadyTimestampstring

The timestamp at which the target node detects the domain is active

targetNodeTopologystring

If the VMI requires dedicated CPUs, this field will hold the numa topology on the target node

targetPersistentStatePVCNamestring

If the VMI being migrated uses persistent features (backend-storage), its target PVC name is saved here

targetPodstring

The target pod that the VMI is moving to

targetStateobject

TargetState contains migration state managed by the target virt handler

.status.migrationState.migrationConfiguration

Description
Migration configurations to apply
Type
object
PropertyTypeDescription
allowAutoConvergeboolean

AllowAutoConverge allows the platform to compromise performance/availability of VMIs to guarantee successful VMI live migrations. Defaults to false

allowPostCopyboolean

AllowPostCopy enables post-copy live migrations. Such migrations allow even the busiest VMIs to successfully live-migrate. However, events like a network failure can cause a VMI crash. If set to true, migrations will still start in pre-copy, but switch to post-copy when CompletionTimeoutPerGiB triggers. Defaults to false

allowWorkloadDisruptionboolean

AllowWorkloadDisruption indicates that the migration shouldn't be canceled after acceptableCompletionTime is exceeded. Instead, if permitted, migration will be switched to post-copy or the VMI will be paused to allow the migration to complete

bandwidthPerMigration

BandwidthPerMigration limits the amount of network bandwidth live migrations are allowed to use. The value is in quantity per second. Defaults to 0 (no limit)

completionTimeoutPerGiBinteger

CompletionTimeoutPerGiB is the maximum number of seconds per GiB a migration is allowed to take. If the timeout is reached, the migration will be either paused, switched to post-copy or cancelled depending on other settings. Defaults to 150

disableTLSboolean

When set to true, DisableTLS will disable the additional layer of live migration encryption provided by KubeVirt. This is usually a bad idea. Defaults to false

matchSELinuxLevelOnMigrationboolean

By default, the SELinux level of target virt-launcher pods is forced to the level of the source virt-launcher. When set to true, MatchSELinuxLevelOnMigration lets the CRI auto-assign a random level to the target. That will ensure the target virt-launcher doesn't share categories with another pod on the node. However, migrations will fail when using RWX volumes that don't automatically deal with SELinux levels.

networkstring

Network is the name of the CNI network to use for live migrations. By default, migrations go through the pod network.

nodeDrainTaintKeystring

NodeDrainTaintKey defines the taint key that indicates a node should be drained. Note: this option relies on the deprecated node taint feature. Default: kubevirt.io/drain

parallelMigrationsPerClusterinteger

ParallelMigrationsPerCluster is the total number of concurrent live migrations allowed cluster-wide. Defaults to 5

parallelOutboundMigrationsPerNodeinteger

ParallelOutboundMigrationsPerNode is the maximum number of concurrent outgoing live migrations allowed per node. Defaults to 2

progressTimeoutinteger

ProgressTimeout is the maximum number of seconds a live migration is allowed to make no progress. Hitting this timeout means a migration transferred 0 data for that many seconds. The migration is then considered stuck and therefore cancelled. Defaults to 150

unsafeMigrationOverrideboolean

UnsafeMigrationOverride allows live migrations to occur even if the compatibility check indicates the migration will be unsafe to the guest. Defaults to false

.status.migrationState.sourceState

Description
SourceState contains migration state managed by the source virt handler
Type
object
PropertyTypeDescription
domainNamestring

The name of the domain on the source libvirt domain

domainNamespacestring

Namespace used in the name of the source libvirt domain. Can be used to find and modify paths in the domain

migrationUIDstring

The Source VirtualMachineInstanceMigration object associated with this migration

nodestring

The source node that the VMI originated on

nodeSelectorsobject

Node selectors needed by the target to start the receiving pod.

persistentStatePVCNamestring

If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here

podstring

The source pod that the VMI is originated on

selinuxContextstring

SELinuxContext is the actual SELinux context of the pod

syncAddressstring

The ip address/fqdn:port combination to use to synchronize the VMI with the target.

virtualMachineInstanceUIDstring

VirtualMachineInstanceUID is the UID of the target virtual machine instance

.status.migrationState.sourceState.nodeSelectors

Description
Node selectors needed by the target to start the receiving pod.
Type
object

.status.migrationState.targetCPUSet

Description
If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node
Type
array

.status.migrationState.targetCPUSet[]

Type
integer

.status.migrationState.targetDirectMigrationNodePorts

Description
The list of ports opened for live migration on the destination node
Type
object

.status.migrationState.targetState

Description
TargetState contains migration state managed by the target virt handler
Type
object
PropertyTypeDescription
attachmentPodUIDstring

The UID of the target attachment pod for hotplug volumes

cpuSetarray

If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node

directMigrationNodePortsobject

The list of ports opened for live migration on the destination node

domainDetectedboolean

The Target Node has seen the Domain Start Event

domainNamestring

The name of the domain on the source libvirt domain

domainNamespacestring

Namespace used in the name of the source libvirt domain. Can be used to find and modify paths in the domain

domainReadyTimestampstring

The timestamp at which the target node detects the domain is active

migrationUIDstring

The Source VirtualMachineInstanceMigration object associated with this migration

nodestring

The source node that the VMI originated on

nodeAddressstring

The address of the target node to use for the migration

nodeTopologystring

If the VMI requires dedicated CPUs, this field will hold the numa topology on the target node

persistentStatePVCNamestring

If the VMI being migrated uses persistent features (backend-storage), its source PVC name is saved here

podstring

The source pod that the VMI is originated on

selinuxContextstring

SELinuxContext is the actual SELinux context of the pod

syncAddressstring

The ip address/fqdn:port combination to use to synchronize the VMI with the target.

virtualMachineInstanceUIDstring

VirtualMachineInstanceUID is the UID of the target virtual machine instance

.status.migrationState.targetState.cpuSet

Description
If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node
Type
array

.status.migrationState.targetState.cpuSet[]

Type
integer

.status.migrationState.targetState.directMigrationNodePorts

Description
The list of ports opened for live migration on the destination node
Type
object

.status.phaseTransitionTimestamps

Description
PhaseTransitionTimestamp is the timestamp of when the last phase change occurred
Type
array

.status.phaseTransitionTimestamps[]

Description
VirtualMachineInstancePhaseTransitionTimestamp gives a timestamp in relation to when a phase is set on a vmi
Type
object
PropertyTypeDescription
phasestring

Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it.

phaseTransitionTimestampstring

PhaseTransitionTimestamp is the timestamp of when the phase change occurred

.status.topologyHints

Type
object
PropertyTypeDescription
tscFrequencyinteger

.status.volumeStatus

Description
VolumeStatus contains the statuses of all the volumes
Type
array

.status.volumeStatus[]

Description
VolumeStatus represents information about the status of volumes attached to the VirtualMachineInstance.
Type
object
Required
nametarget
PropertyTypeDescription
containerDiskVolumeobject

ContainerDiskVolume shows info about the containerdisk, if the volume is a containerdisk

hotplugVolumeobject

If the volume is hotplug, this will contain the hotplug status.

memoryDumpVolumeobject

If the volume is memorydump volume, this will contain the memorydump info.

messagestring

Message is a detailed message about the current hotplug volume phase

namestring

Name is the name of the volume

persistentVolumeClaimInfoobject

PersistentVolumeClaimInfo is information about the PVC that handler requires during start flow

phasestring

Phase is the phase

reasonstring

Reason is a brief description of why we are in the current hotplug volume phase

sizeinteger

Represents the size of the volume

targetstring

Target is the target name used when adding the volume to the VM, eg: vda

.status.volumeStatus[].containerDiskVolume

Description
ContainerDiskVolume shows info about the containerdisk, if the volume is a containerdisk
Type
object
PropertyTypeDescription
checksuminteger

Checksum is the checksum of the rootdisk or kernel artifacts inside the containerdisk

.status.volumeStatus[].hotplugVolume

Description
If the volume is hotplug, this will contain the hotplug status.
Type
object
PropertyTypeDescription
attachPodNamestring

AttachPodName is the name of the pod used to attach the volume to the node.

attachPodUIDstring

AttachPodUID is the UID of the pod used to attach the volume to the node.

.status.volumeStatus[].memoryDumpVolume

Description
If the volume is memorydump volume, this will contain the memorydump info.
Type
object
PropertyTypeDescription
claimNamestring

ClaimName is the name of the pvc the memory was dumped to

endTimestampstring

EndTimestamp is the time when the memory dump completed

startTimestampstring

StartTimestamp is the time when the memory dump started

targetFileNamestring

TargetFileName is the name of the memory dump output

.status.volumeStatus[].persistentVolumeClaimInfo

Description
PersistentVolumeClaimInfo is information about the PVC that handler requires during start flow
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.volumeStatus[].persistentVolumeClaimInfo.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.volumeStatus[].persistentVolumeClaimInfo.accessModes[]

Type
string

.status.volumeStatus[].persistentVolumeClaimInfo.capacity

Description
Capacity represents the capacity set on the corresponding PVC status
Type
object

.status.volumeStatus[].persistentVolumeClaimInfo.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}/virtualmachineinstances
    • DELETE: delete collection of VirtualMachineInstance
    • GET: list objects of kind VirtualMachineInstance
    • POST: create a new VirtualMachineInstance
  • /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}
    • DELETE: delete the specified VirtualMachineInstance
    • GET: read the specified VirtualMachineInstance
    • PATCH: partially update the specified VirtualMachineInstance
    • PUT: replace the specified VirtualMachineInstance
  • /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/status
    • GET: read status of the specified VirtualMachineInstance
    • PATCH: partially update status of the specified VirtualMachineInstance
    • PUT: replace status of the specified VirtualMachineInstance

/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances

HTTP method
DELETE
Description
delete collection of VirtualMachineInstance
HTTP responses
HTTP codeResponse body
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP method
GET
Description
list objects of kind VirtualMachineInstance
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineInstanceList schema
401 - UnauthorizedEmpty
HTTP method
POST
Description
create a new VirtualMachineInstance
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
bodyVirtualMachineInstance schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineInstance schema
201 - CreatedVirtualMachineInstance schema
202 - AcceptedVirtualMachineInstance schema
401 - UnauthorizedEmpty

/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}

HTTP method
DELETE
Description
delete the specified VirtualMachineInstance
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 VirtualMachineInstance
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineInstance schema
401 - UnauthorizedEmpty
HTTP method
PATCH
Description
partially update the specified VirtualMachineInstance
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 - OKVirtualMachineInstance schema
401 - UnauthorizedEmpty
HTTP method
PUT
Description
replace the specified VirtualMachineInstance
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
bodyVirtualMachineInstance schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineInstance schema
201 - CreatedVirtualMachineInstance schema
401 - UnauthorizedEmpty

/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/status

HTTP method
GET
Description
read status of the specified VirtualMachineInstance
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineInstance schema
401 - UnauthorizedEmpty
HTTP method
PATCH
Description
partially update status of the specified VirtualMachineInstance
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 - OKVirtualMachineInstance schema
401 - UnauthorizedEmpty
HTTP method
PUT
Description
replace status of the specified VirtualMachineInstance
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
bodyVirtualMachineInstance schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKVirtualMachineInstance schema
201 - CreatedVirtualMachineInstance schema
401 - UnauthorizedEmpty