This section describes the cluster layouts in Huawei Cloud infrastructure and the associated parameters.

List of required Huawei Cloud services

A list of services required for Deckhouse Platform (DP) to work in Huawei Cloud:

Service API version
Identity v3
Compute v2.1
Network (VPC) v1/v2
Network (OpenStack Neutron API) v2.0
Block Storage v3
Load Balancing (ELB) * v3

* Required if load balancers need to be provisioned in the cluster.

Standard

  • An internal cluster network is created with a gateway to the public network.
  • An Elastic IP can be assigned to the master node.
  • Nodes managed by the Cluster API do not have public IP addresses.

Standard layout in Huawei CLoud

The internalNetworkSecurity parameter (default true) enables the creation of a security group (SecurityGroup) when a cluster is created. DP creates the group named after the cluster prefix and assigns it to the nodes.

The following inbound rules will be created:

  • Allow incoming traffic over the TCP protocol on port 22 from 0.0.0.0/0.
  • Allow incoming traffic over the ICMP protocol from 0.0.0.0/0.
  • Allow incoming traffic over the TCP protocol on ports 30000–32767 for services of the NodePort type. Inbound UDP traffic to NodePort ports is not allowed by default.

Attach custom security groups for CloudEphemeral nodes in the HuaweiCloudInstanceClass resource via spec.securityGroups. They are applied together with the group created by DP.

Example configuration:

apiVersion: deckhouse.io/v1
kind: HuaweiCloudClusterConfiguration
layout: Standard
sshPublicKey: "<SSH_PUBLIC_KEY>"
standard:
  internalNetworkDNSServers:
    - 8.8.8.8
  internalNetworkCIDR: 192.168.199.0/24
  internalNetworkSecurity: true
  enableEIP: true
provider:
  cloud: hc.sbercloud.ru
  region: ru-moscow-1
  accessKey: "<Access key>"
  secretKey: "<Secret key>"
  projectID: "<Project ID>"
masterNodeGroup:
  replicas: 1
  instanceClass:
    imageName: alt-p11
    flavorName: s7n.xlarge.2
    rootDiskSize: 50
  serverGroup:
    policy: AntiAffinity
  volumeTypeMap:
    ru-moscow-1a: SSD

VpcPeering

  • An existing VPC network and subnet are used.
  • Virtual machines are connected to the specified subnet.

VpcPeering layout in Huawei Cloud

The internalNetworkSecurity parameter (default true) enables the creation of a security group (SecurityGroup) when a cluster is created. DP creates the group named after the cluster prefix and assigns it to the nodes.

The following inbound rules will be created:

  • Allow incoming traffic over the TCP protocol on port 22 from 0.0.0.0/0.
  • Allow incoming traffic over the ICMP protocol from 0.0.0.0/0.
  • Allow incoming traffic over the TCP protocol on ports 30000–32767 for services of the NodePort type. Inbound UDP traffic to NodePort ports is not allowed by default.

Attach custom security groups for CloudEphemeral nodes in the HuaweiCloudInstanceClass resource via spec.securityGroups. They are applied together with the group created by DP.

Example configuration:

apiVersion: deckhouse.io/v1
kind: HuaweiCloudClusterConfiguration
layout: VpcPeering
sshPublicKey: "<SSH_PUBLIC_KEY>"
vpcPeering:
  internalNetworkDNSServers:
    - 8.8.8.8
  internalNetworkCIDR: 10.221.128.0/24
  internalNetworkSecurity: true
  subnet: subnet-43b4

Additional resources