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
- 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
- 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 orinstances.imageName
is used.Example:
imageName: ubuntu-18-04-cloud-amd64
- 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