InfraMachineTemplate

Overview

InfraMachineTemplate—virtual machine parameters template for a group of nodes. The specific type depends on the infrastructure provider (vSphere, oVirt, OpenStack, etc.). When a group is created or modified, the Cluster API creates InfraMachine instances based on the template.

Where to configure: Node Management → Group Configuration → InfraMachineTemplate or Administration tab → Custom Resources (API infrastructure.cluster.x-k8s.io).

Note: changing the InfraMachineTemplate in an existing group causes re-creation of nodes.

A summary table of infrastructure.cluster.x-k8s.io resources for supplied providers is in the Custom node life cycle resources section.


OVirtMachineTemplate

Provider for oVirt. API: infrastructure.cluster.x-k8s.io/v1beta1, kind: OVirtMachineTemplate.

ParameterDescription
CPU: coresNumber of processor cores
CPU: socketsNumber of sockets
CPU: threadsNumber of threads per core
sizembRAM capacity, MB
osdisksizegbSystem disk size, GB
vnicprofileVirtual Network Interface Profile
ovirtclusteroVirt cluster for hosting VMs
storagedomainStorage domain for disks of new VMs. If unset, disks stay in the template domain. To create disks in the selected Storage Domain, turn VM disk cloning on.
Clone disk when creating a VM (diskclone)Yes clones disks of nodes in this group, No creates them without cloning. Default uses the provider instance value, or the disk-clone feature gate if the instance is also Default. Details: disk cloning.
templateVM template (OS image). One OS per cluster is recommended.
Screenshot: OVirtMachineTemplate

OVirtMachineTemplate


VSphereMachineTemplate

Provider for VMware vSphere. API: infrastructure.cluster.x-k8s.io/v1beta1, kind: VSphereMachineTemplate.

ParameterDescription
datacentervSphere Data Center (drop-down list)
datastoreDatastore for VM disks
diskGiBSystem disk size, GB
memoryMiBRAM capacity, MB
folderFolder (path) for creating a VM
numCPUsNumber of CPU cores
networkNameNetwork name (port group)
resourcePoolResource Pool
templateVM template (OS image). One OS per cluster is recommended.
Screenshot: VSphereMachineTemplate

VSphereMachineTemplate


OpenStackMachineTemplate

Provider for OpenStack. API: infrastructure.cluster.x-k8s.io/v1beta6, kind: OpenStackMachineTemplate.

ParameterDescription
cloudNameCloud name in clouds.yaml
flavorVM type (flavor) - determines CPU and RAM
sshKeyNameSSH key name for accessing the VM
volumeTypeDisk volume type (if using Cinder)
Disk capacity, GBSystem disk size
templateVM template (image). One OS per cluster is recommended.

Note: The availabilityZone is set when creating a cluster and is only available for viewing in the template.

Screenshot: OpenStackMachineTemplate

OpenStackMachineTemplate


BasisMachineTemplate

Provider for Basis Dynamix. API: infrastructure.cluster.x-k8s.io/v1beta1, kind: BasisMachineTemplate.

ParameterDescription
Number of coresCPU
RAM volume, MBMemory
Disk capacity, GBDisk size
Resource GroupResource Group in Basis
VINSNameVirtual network
ExtNetNameExternal network
Screenshot: BasisMachineTemplate

BasisMachineTemplate


ShturvalMachineTemplate

Provider for Shturval v2 (bare metal / hosts). API: infrastructure.cluster.x-k8s.io/v1beta1, kind: ShturvalMachineTemplate.

Basic mode

Selection of host role—when scaling, only free hosts with the selected role are joined. In the block Potentially availablee hosts matches the hosts displayed.

Advanced settings

Selector by labels and expressions for selecting hosts:

OperatorDescription
InHosts with matching key and value
NotInExclude hosts with key and value
ExistsHosts with the specified key (no value required)
DoesNotExistHosts without the specified key

Note: if a label for hosts is selected in one group, it must be excluded in other groups: key = the same, operator = NotIn, value = selected in another group.

Screenshot: ShturvalMachineTemplate (basic mode)

ShturvalMachineTemplate

Screenshot: advanced settings

ShturvalMachineTemplate advanced


YandexMachineTemplate

Provider for Yandex Cloud. API: infrastructure.cluster.x-k8s.io/v1beta1, kind: YandexMachineTemplate.

ParameterDescription
Platform TypeVM platform (standard-v3, etc.)
Disk Typessd, hdd
RAM capacityGi or Mi
Disk capacityGi or Mi
cpuCoresNumber of cores
templateVM template (image)
Screenshot: YandexMachineTemplate

YandexMachineTemplate


VCDMachineTemplate

Provider for VMware vCloud Director. API: infrastructure.cluster.x-k8s.io/v1beta1, kind: VCDMachineTemplate.

ParameterDescription
DiskSizeDrive size (Gi or Mi)
SizingPolicyResource management policy (CPU, RAM) from the catalog
templateVM template

View only: catalog (image catalog), network (node subnet).

Screenshot: VCDMachineTemplate

VCDMachineTemplate