Options
All
  • Public
  • Public/Protected
  • All
Menu

VirtualMachineInstanceSpec is a description of a VirtualMachineInstance.

export
interface

V1VirtualMachineInstanceSpec

Hierarchy

  • V1VirtualMachineInstanceSpec

Index

Properties

accessCredentials?: V1AccessCredential[]

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

memberof

V1VirtualMachineInstanceSpec

memberof

V1VirtualMachineInstanceSpec

architecture?: string

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

memberof

V1VirtualMachineInstanceSpec

memberof

V1VirtualMachineInstanceSpec

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

Possible enum values:

  • "ClusterFirst" indicates that the pod should use cluster DNS first unless hostNetwork is true, if it is available, then fall back on the default (as determined by kubelet) DNS settings.
  • "ClusterFirstWithHostNet" indicates that the pod should use cluster DNS first, if it is available, then fall back on the default (as determined by kubelet) DNS settings.
  • "Default" indicates that the pod should use the default (as determined by kubelet) DNS settings.
  • "None" indicates that the pod should use empty DNS settings. DNS parameters such as nameservers and search paths should be defined via DNSConfig.
memberof

V1VirtualMachineInstanceSpec

domain: V1DomainSpec
memberof

V1VirtualMachineInstanceSpec

evictionStrategy?: string

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 by a PDB 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.

memberof

V1VirtualMachineInstanceSpec

hostname?: string

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.

memberof

V1VirtualMachineInstanceSpec

livenessProbe?: V1Probe
memberof

V1VirtualMachineInstanceSpec

networks?: V1Network[]

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

memberof

V1VirtualMachineInstanceSpec

nodeSelector?: {}

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/

memberof

V1VirtualMachineInstanceSpec

Type declaration

  • [key: string]: string
priorityClassName?: string

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

memberof

V1VirtualMachineInstanceSpec

readinessProbe?: V1Probe
memberof

V1VirtualMachineInstanceSpec

schedulerName?: string

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

memberof

V1VirtualMachineInstanceSpec

startStrategy?: string

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

memberof

V1VirtualMachineInstanceSpec

subdomain?: string

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.

memberof

V1VirtualMachineInstanceSpec

terminationGracePeriodSeconds?: number

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

memberof

V1VirtualMachineInstanceSpec

tolerations?: K8sIoApiCoreV1Toleration[]

If toleration is specified, obey all the toleration rules.

memberof

V1VirtualMachineInstanceSpec

topologySpreadConstraints?: K8sIoApiCoreV1TopologySpreadConstraint[]

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.

memberof

V1VirtualMachineInstanceSpec

volumes?: V1Volume[]

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

memberof

V1VirtualMachineInstanceSpec

Generated using TypeDoc