HuaweiCloudInstanceClass

Scope: Cluster
Version: v1

Huawei Cloud server group parameters used by machine-controller-manager (the node-manager module).

The CloudInstanceClass resource of the node-manager module refers to this resource.

Example:

apiVersion: deckhouse.io/v1
kind: HuaweiCloudInstanceClass
metadata:
name: worker
spec:
imageName: alt-p11
flavorName: s7n.xlarge.2
rootDiskSize: 50
rootDiskType: SSD
  • spec
    object

    Required value

    • spec.flavorName
      string

      Required value

      Flavor of Huawei Cloud servers.

      To get a list of all available flavors, run the following command: huaweicloud flavor list.

      For all non-master nodes, it’s recommended that you use a flavor that includes a local disk. If the cloud provider supports local disks, they’re usually faster and cheaper. The disadvantage of using such a flavor is the inability to migrate nodes between hypervisors.

      Example of the flavor creation command: huaweicloud flavor create c4m8d50 --ram 8192 --disk 50 --vcpus 4.

      Example:

      flavorName: m1.medium
      
    • spec.imageName
      string

      Not required value.

      Image to use while provisioning HuaweiCloud servers.

      Use this command to get a list of available images: huaweicloud image list.

      For the list of operating systems and specific versions supported by Deckhouse, refer to Supported Kubernetes and OS versions (take into account the Deckhouse version you use).

      By default, either the HuaweiCloudCloudDiscoveryData value or instances.imageName is used.

      Example:

      imageName: ubuntu-18-04-cloud-amd64
      
    • spec.rootDiskSize
      integer

      Not required value.

      The size of a root disk in gigabytes.

      This parameter also affects the type of a root disk.

      Example:

      rootDiskSize: 20
      
    • spec.rootDiskType
      string

      Not required value.

      The type of a root disk.

      The parameter is used to specify the type of a volume that will be used for the root disk.

      By default, the value from HuaweiCloudCloudDiscoveryData is used.

      Example:

      rootDiskType: GPSSD
      
    • spec.securityGroups
      array of strings

      Not required value.

      Security groups that will be applied to VM’s network ports in addition to security groups set in a cloud provider configuration.

      These security groups allow you to set firewall rules for provisioned instances.

      The SecurityGroups group may not be supported by the cloud provider.

      Example:

      securityGroups:
      - security-group-1
      - security-group-2
      
    • spec.serverGroupID
      string

      Not required value.

      The server group to assign the machine to.

      Example:

      serverGroupID: server-group-1
      
    • spec.subnets
      array of strings

      Not required value.

      Paths to networks that the secondary VirtualMachines NICs will connect to.

      By default, the value from HuaweiCloudCloudDiscoveryData is used.

      Example:

      subnets:
      - BGP-network-VLAN-3894
      - External-VLAN-3699