Class MachinePool
- java.lang.Object
-
- io.fabric8.openshift.api.model.installer.ovirt.v1.MachinePool
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<MachinePoolBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class MachinePool extends Object implements io.fabric8.kubernetes.api.builder.Editable<MachinePoolBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
MachinePool stores the configuration for a machine pool installed on ovirt.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MachinePool()No args constructor for use in serializationMachinePool(List<String> affinityGroupsNames, String autoPinningPolicy, Boolean clone, CPU cpu, String format, Integer hugepages, String instanceTypeID, Integer memoryMB, Disk osDisk, Boolean sparse, String vmType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MachinePoolBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getAffinityGroupsNames()AffinityGroupsNames contains a list of oVirt affinity group names that the newly created machines will join.StringgetAutoPinningPolicy()AutoPinningPolicy defines the policy to automatically set the CPU and NUMA including pinning to the host for the instance.BooleangetClone()Clone makes sure that the disks are cloned from the template and are not linked.CPUgetCpu()MachinePool stores the configuration for a machine pool installed on ovirt.StringgetFormat()Format is the disk format that the disks are in.IntegergetHugepages()Hugepages is the size of a VM's hugepages to use in KiBs.StringgetInstanceTypeID()InstanceTypeID defines the VM instance type and overrides the hardware parameters of the created VM, including cpu and memory.IntegergetMemoryMB()MemoryMB is the size of a VM's memory in MiBs.DiskgetOsDisk()MachinePool stores the configuration for a machine pool installed on ovirt.BooleangetSparse()Sparse indicates that sparse provisioning should be used and disks should be not preallocated.StringgetVmType()VMType defines the workload type of the VM.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAffinityGroupsNames(List<String> affinityGroupsNames)AffinityGroupsNames contains a list of oVirt affinity group names that the newly created machines will join.voidsetAutoPinningPolicy(String autoPinningPolicy)AutoPinningPolicy defines the policy to automatically set the CPU and NUMA including pinning to the host for the instance.voidsetClone(Boolean clone)Clone makes sure that the disks are cloned from the template and are not linked.voidsetCpu(CPU cpu)MachinePool stores the configuration for a machine pool installed on ovirt.voidsetFormat(String format)Format is the disk format that the disks are in.voidsetHugepages(Integer hugepages)Hugepages is the size of a VM's hugepages to use in KiBs.voidsetInstanceTypeID(String instanceTypeID)InstanceTypeID defines the VM instance type and overrides the hardware parameters of the created VM, including cpu and memory.voidsetMemoryMB(Integer memoryMB)MemoryMB is the size of a VM's memory in MiBs.voidsetOsDisk(Disk osDisk)MachinePool stores the configuration for a machine pool installed on ovirt.voidsetSparse(Boolean sparse)Sparse indicates that sparse provisioning should be used and disks should be not preallocated.voidsetVmType(String vmType)VMType defines the workload type of the VM.MachinePoolBuildertoBuilder()
-
-
-
Method Detail
-
getAffinityGroupsNames
public List<String> getAffinityGroupsNames()
AffinityGroupsNames contains a list of oVirt affinity group names that the newly created machines will join. The affinity groups should exist on the oVirt cluster or created by the OpenShift installer.
-
setAffinityGroupsNames
public void setAffinityGroupsNames(List<String> affinityGroupsNames)
AffinityGroupsNames contains a list of oVirt affinity group names that the newly created machines will join. The affinity groups should exist on the oVirt cluster or created by the OpenShift installer.
-
getAutoPinningPolicy
public String getAutoPinningPolicy()
AutoPinningPolicy defines the policy to automatically set the CPU and NUMA including pinning to the host for the instance. When the field is omitted the default will be "none".
-
setAutoPinningPolicy
public void setAutoPinningPolicy(String autoPinningPolicy)
AutoPinningPolicy defines the policy to automatically set the CPU and NUMA including pinning to the host for the instance. When the field is omitted the default will be "none".
-
getClone
public Boolean getClone()
Clone makes sure that the disks are cloned from the template and are not linked. Defaults to true for high performance and server VM types, false for desktop types.Note: this option is not documented in the OpenShift documentation. This is intentional as it has sane defaults that shouldn't be changed unless needed for debugging or resolving issues in cooperation with Red Hat support.
-
setClone
public void setClone(Boolean clone)
Clone makes sure that the disks are cloned from the template and are not linked. Defaults to true for high performance and server VM types, false for desktop types.Note: this option is not documented in the OpenShift documentation. This is intentional as it has sane defaults that shouldn't be changed unless needed for debugging or resolving issues in cooperation with Red Hat support.
-
getCpu
public CPU getCpu()
MachinePool stores the configuration for a machine pool installed on ovirt.
-
setCpu
public void setCpu(CPU cpu)
MachinePool stores the configuration for a machine pool installed on ovirt.
-
getFormat
public String getFormat()
Format is the disk format that the disks are in. Can be "cow" or "raw". "raw" disables several features that may be needed, such as incremental backups.
-
setFormat
public void setFormat(String format)
Format is the disk format that the disks are in. Can be "cow" or "raw". "raw" disables several features that may be needed, such as incremental backups.
-
getHugepages
public Integer getHugepages()
Hugepages is the size of a VM's hugepages to use in KiBs.
-
setHugepages
public void setHugepages(Integer hugepages)
Hugepages is the size of a VM's hugepages to use in KiBs.
-
getInstanceTypeID
public String getInstanceTypeID()
InstanceTypeID defines the VM instance type and overrides the hardware parameters of the created VM, including cpu and memory. If InstanceTypeID is passed, all memory and cpu variables will be ignored.
-
setInstanceTypeID
public void setInstanceTypeID(String instanceTypeID)
InstanceTypeID defines the VM instance type and overrides the hardware parameters of the created VM, including cpu and memory. If InstanceTypeID is passed, all memory and cpu variables will be ignored.
-
getMemoryMB
public Integer getMemoryMB()
MemoryMB is the size of a VM's memory in MiBs.
-
setMemoryMB
public void setMemoryMB(Integer memoryMB)
MemoryMB is the size of a VM's memory in MiBs.
-
getOsDisk
public Disk getOsDisk()
MachinePool stores the configuration for a machine pool installed on ovirt.
-
setOsDisk
public void setOsDisk(Disk osDisk)
MachinePool stores the configuration for a machine pool installed on ovirt.
-
getSparse
public Boolean getSparse()
Sparse indicates that sparse provisioning should be used and disks should be not preallocated.
-
setSparse
public void setSparse(Boolean sparse)
Sparse indicates that sparse provisioning should be used and disks should be not preallocated.
-
getVmType
public String getVmType()
VMType defines the workload type of the VM.
-
setVmType
public void setVmType(String vmType)
VMType defines the workload type of the VM.
-
edit
public MachinePoolBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<MachinePoolBuilder>
-
toBuilder
public MachinePoolBuilder toBuilder()
-
-