VsphereInstanceClass
Scope: Cluster
Parameters of a group of vSphere VirtualMachines used by machine-controller-manager (the node-manager module).
The CloudInstanceClass resource of the node-manager module refers to this resource.
- objectspec
Required value
- array of stringsspec.additionalNetworks
Paths to networks that VirtualMachines’ secondary NICs will connect to. Relative to the datacenter.
Examples:
additionalNetworks: DEVOPS_32additionalNetworks: DEVOPS_50 - stringspec.datastore
Path to a Datastore (relative to the datacenter) in which VirtualMachines will be cloned.
By default, a datastore from the
masterInstanceClass is used.Example:
datastore: lun-1201 - booleanspec.disableTimesync
Disable time synchronization in Guest VM.
Note: this won’t disable any NTP daemons running on the guest OS, it only disables time synchronization from ESXi.
Default:
true - stringspec.mainNetwork
Required value
Path to the network that VirtualMachines’ primary NICs will connect to (default gateway). Relative to the datacenter.
Example:
mainNetwork: k8s-msk-178 - integerspec.memory
Required value
Memory in MiB to allocate to vSphere VirtualMachines.
Example:
memory: 8192 - integerspec.numCPUs
Required value
Count of vCPUs to allocate to vSphere VirtualMachines.
Example:
numCPUs: 2 - stringspec.resourcePool
Path to a Resource Pool in which VirtualMachines will be cloned. Relative to the zone (vSphere Cluster).
By default, the value from
VsphereCloudDiscoveryDatais used.Example:
resourcePool: rp-2012 - integerspec.rootDiskSize
Root disk size in GiB to use in vSphere VirtualMachines.
The disk will be automatically enlarged if its size in the template is less than specified.
Default:
20Example:
rootDiskSize: 20 - objectspec.runtimeOptions
Additional VM’s parameters.
- integerspec.runtimeOptions.cpuLimit
CPU limit in MHz.
- integerspec.runtimeOptions.cpuReservation
CPU reservation in MHz.
- integer
The relative amount of CPU Shares for VMs to be created.
- integerspec.runtimeOptions.memoryLimit
Memory limit in MB.
- integerspec.runtimeOptions.memoryReservation
VM memory reservation in percent (relative to
.spec.memory).Default:
80Allowed values:
0 <= X <= 100 - integer
The relative amount of Memory Shares for VMs to be created.
Allowed values:
0 <= X <= 100 - booleanspec.runtimeOptions.nestedHardwareVirtualization
Whether to enable or disable nested hardware virtualization.
- stringspec.template
Path to the template to be cloned. Relative to the datacenter.
By default, a template from the
masterInstanceClass is used.Example:
template: dev/golden_image
Parameters of a group of vSphere VirtualMachines used by machine-controller-manager (the node-manager module).
The CloudInstanceClass resource of the node-manager module refers to this resource.
- objectspec
Required value
- array of stringsspec.additionalNetworks
Paths to networks that VirtualMachines’ secondary NICs will connect to. Relative to the datacenter.
Examples:
additionalNetworks: DEVOPS_32additionalNetworks: DEVOPS_50 - stringspec.datastore
Path to a Datastore (relative to the datacenter) in which VirtualMachines will be cloned.
By default, a datastore from the
masterInstanceClass is used.Example:
datastore: lun-1201 - booleanspec.disableTimesync
Disable time synchronization in Guest VM.
Note: this won’t disable any NTP daemons running on the guest OS, it only disables time synchronization from ESXi.
Default:
true - stringspec.mainNetwork
Required value
Path to the network that VirtualMachines’ primary NICs will connect to (default gateway). Relative to the datacenter.
Example:
mainNetwork: k8s-msk-178 - integerspec.memory
Required value
Memory in MiB to allocate to vSphere VirtualMachines.
Example:
memory: 8192 - integerspec.numCPUs
Required value
Count of vCPUs to allocate to vSphere VirtualMachines.
Example:
numCPUs: 2 - stringspec.resourcePool
Path to a Resource Pool in which VirtualMachines will be cloned. Relative to the zone (vSphere Cluster).
By default, the value from
VsphereCloudDiscoveryDatais used.Example:
resourcePool: rp-2012 - integerspec.rootDiskSize
Root disk size in GiB to use in vSphere VirtualMachines.
The disk will be automatically enlarged if its size in the template is less than specified.
Default:
20Example:
rootDiskSize: 20 - objectspec.runtimeOptions
Additional VM’s parameters.
- integerspec.runtimeOptions.cpuLimit
CPU limit in MHz.
- integerspec.runtimeOptions.cpuReservation
CPU reservation in MHz.
- integer
The relative amount of CPU Shares for VMs to be created.
- integerspec.runtimeOptions.memoryLimit
Memory limit in MB.
- integerspec.runtimeOptions.memoryReservation
VM memory reservation in percent (relative to
.spec.memory).Default:
80Allowed values:
0 <= X <= 100 - integer
The relative amount of Memory Shares for VMs to be created.
Allowed values:
0 <= X <= 100 - booleanspec.runtimeOptions.nestedHardwareVirtualization
Whether to enable or disable nested hardware virtualization.
- stringspec.template
Path to the template to be cloned. Relative to the datacenter.
By default, a template from the
masterInstanceClass is used.Example:
template: dev/golden_image