This feature is available in Enterprise Edition only.

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
    object

    Required value

    • spec.additionalNetworks
      array of strings

      Paths to networks that VirtualMachines’ secondary NICs will connect to. Relative to the datacenter.

      Examples:

      additionalNetworks: DEVOPS_32
      
      additionalNetworks: DEVOPS_50
      
    • spec.datastore
      string

      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
      boolean

      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
      string

      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
      integer

      Required value

      Memory in MiB to allocate to vSphere VirtualMachines.

      Example:

      memory: 8192
      
    • spec.numCPUs
      integer

      Required value

      Count of vCPUs to allocate to vSphere VirtualMachines.

      Example:

      numCPUs: 2
      
    • spec.resourcePool
      string

      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
      integer

      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
      object

      Additional VM’s parameters.

      • spec.runtimeOptions.cpuLimit
        integer

        CPU limit in MHz.

      • spec.runtimeOptions.cpuReservation
        integer

        CPU reservation in MHz.

      • spec.runtimeOptions.cpuShares
        integer

        The relative amount of CPU Shares for VMs to be created.

      • spec.runtimeOptions.memoryLimit
        integer

        Memory limit in MB.

      • spec.runtimeOptions.memoryReservation
        integer

        VM memory reservation in percent (relative to .spec.memory).

        Default: 80

        Allowed values: 0 <= X <= 100

      • spec.runtimeOptions.memoryShares
        integer

        The relative amount of Memory Shares for VMs to be created.

        Allowed values: 0 <= X <= 100

      • spec.runtimeOptions.nestedHardwareVirtualization
        boolean

        Whether to enable or disable nested hardware virtualization.

    • spec.template
      string

      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
    object

    Required value

    • spec.additionalNetworks
      array of strings

      Paths to networks that VirtualMachines’ secondary NICs will connect to. Relative to the datacenter.

      Examples:

      additionalNetworks: DEVOPS_32
      
      additionalNetworks: DEVOPS_50
      
    • spec.datastore
      string

      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
      boolean

      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
      string

      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
      integer

      Required value

      Memory in MiB to allocate to vSphere VirtualMachines.

      Example:

      memory: 8192
      
    • spec.numCPUs
      integer

      Required value

      Count of vCPUs to allocate to vSphere VirtualMachines.

      Example:

      numCPUs: 2
      
    • spec.resourcePool
      string

      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
      integer

      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
      object

      Additional VM’s parameters.

      • spec.runtimeOptions.cpuLimit
        integer

        CPU limit in MHz.

      • spec.runtimeOptions.cpuReservation
        integer

        CPU reservation in MHz.

      • spec.runtimeOptions.cpuShares
        integer

        The relative amount of CPU Shares for VMs to be created.

      • spec.runtimeOptions.memoryLimit
        integer

        Memory limit in MB.

      • spec.runtimeOptions.memoryReservation
        integer

        VM memory reservation in percent (relative to .spec.memory).

        Default: 80

        Allowed values: 0 <= X <= 100

      • spec.runtimeOptions.memoryShares
        integer

        The relative amount of Memory Shares for VMs to be created.

        Allowed values: 0 <= X <= 100

      • spec.runtimeOptions.nestedHardwareVirtualization
        boolean

        Whether to enable or disable nested hardware virtualization.

    • spec.template
      string

      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