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.
- spec
Required value
- spec.additionalNetworks
Paths to networks that VirtualMachines’ secondary NICs will connect to. Relative to the datacenter.
Examples:
additionalNetworks: DEVOPS_32
additionalNetworks: DEVOPS_50
- spec.datastore
Path to a Datastore (relative to the datacenter) in which VirtualMachines will be cloned.
By default, a datastore from the
master
InstanceClass is used.Example:
datastore: lun-1201
- spec.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
- spec.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
- spec.memory
Required value
Memory in MiB to allocate to vSphere VirtualMachines.
Example:
memory: 8192
- spec.numCPUs
Required value
Count of vCPUs to allocate to vSphere VirtualMachines.
Example:
numCPUs: 2
- spec.resourcePool
Path to a Resource Pool in which VirtualMachines will be cloned. Relative to the zone (vSphere Cluster).
By default, the value from
VsphereCloudDiscoveryData
is used.Example:
resourcePool: rp-2012
- spec.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:
20
Example:
rootDiskSize: 20
- spec.runtimeOptions
Additional VM’s parameters.
- spec.runtimeOptions.cpuLimit
CPU limit in MHz.
- spec.runtimeOptions.cpuReservation
CPU reservation in MHz.
- integer
The relative amount of CPU Shares for VMs to be created.
- spec.runtimeOptions.memoryLimit
Memory limit in MB.
- spec.runtimeOptions.memoryReservation
VM memory reservation in percent (relative to
.spec.memory
).Default:
80
Allowed values:
0 <= X <= 100
- integer
The relative amount of Memory Shares for VMs to be created.
Allowed values:
0 <= X <= 100
- spec.runtimeOptions.nestedHardwareVirtualization
Whether to enable or disable nested hardware virtualization.
- spec.template
Path to the template to be cloned. Relative to the datacenter.
By default, a template from the
master
InstanceClass 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.
- spec
Required value
- spec.additionalNetworks
Paths to networks that VirtualMachines’ secondary NICs will connect to. Relative to the datacenter.
Examples:
additionalNetworks: DEVOPS_32
additionalNetworks: DEVOPS_50
- spec.datastore
Path to a Datastore (relative to the datacenter) in which VirtualMachines will be cloned.
By default, a datastore from the
master
InstanceClass is used.Example:
datastore: lun-1201
- spec.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
- spec.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
- spec.memory
Required value
Memory in MiB to allocate to vSphere VirtualMachines.
Example:
memory: 8192
- spec.numCPUs
Required value
Count of vCPUs to allocate to vSphere VirtualMachines.
Example:
numCPUs: 2
- spec.resourcePool
Path to a Resource Pool in which VirtualMachines will be cloned. Relative to the zone (vSphere Cluster).
By default, the value from
VsphereCloudDiscoveryData
is used.Example:
resourcePool: rp-2012
- spec.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:
20
Example:
rootDiskSize: 20
- spec.runtimeOptions
Additional VM’s parameters.
- spec.runtimeOptions.cpuLimit
CPU limit in MHz.
- spec.runtimeOptions.cpuReservation
CPU reservation in MHz.
- integer
The relative amount of CPU Shares for VMs to be created.
- spec.runtimeOptions.memoryLimit
Memory limit in MB.
- spec.runtimeOptions.memoryReservation
VM memory reservation in percent (relative to
.spec.memory
).Default:
80
Allowed values:
0 <= X <= 100
- integer
The relative amount of Memory Shares for VMs to be created.
Allowed values:
0 <= X <= 100
- spec.runtimeOptions.nestedHardwareVirtualization
Whether to enable or disable nested hardware virtualization.
- spec.template
Path to the template to be cloned. Relative to the datacenter.
By default, a template from the
master
InstanceClass is used.Example:
template: dev/golden_image