Deploy to HuaWei Cloud CCE
Refer to Overview▸, AutoMQ supports deployment on Kubernetes. This article outlines the installation process for deploying AutoMQ on the Huawei Cloud CCE platform.
In this article, AutoMQ Product Service Provider, AutoMQ Service Provider, and AutoMQ specifically refer to AutoMQ HK Limited and its subsidiaries.
Procedure
Step 1: Install Environment Console
Refer to Overview▸, AutoMQ supports deployment on CCE clusters. In the CCE deployment mode, it is first necessary to install the AutoMQ console, followed by managing the CCE via the console interface to deploy the cluster onto CCE.
On Huawei Cloud, both cloud marketplace and Terraform-based installations of the environment console are supported.
Install the console via the Cloud Marketplace (recommended), refer to Install Env via Huawei Marketplace▸.
Install the console via Terraform, refer to Install Env via Terraform Module▸.
Note:
To deploy the AutoMQ data plane cluster on CCE, it is necessary to pull Docker images and Helm Chart artifacts from the public internet. This requires the VPC environment to support public internet access through SNAT. For SNAT configuration instructions, refer to the Appendix section of the Install Env via Huawei Marketplace▸ document.
After the AutoMQ console is installed, you need to obtain the console address, initial username, and password from either the console interface or the Terraform output menu.
Step 2: Create CCE Cluster
Refer to Overview▸, where users need to pre-create an independent CCE cluster allocated for AutoMQ usage. Users can access the Huawei Cloud CCE product console and follow the steps below.
- Log in to the Huawei Cloud CCE Console. Click Purchase Cluster.

- Select the cluster type as CCE Turbo and choose the billing mode and version according to the recommendations. It is recommended to choose a cluster size of 200-1000 nodes.

The network configuration needs to be set according to the following requirements:
Node subnet: Select a subnet with a sufficient IP range, recommended not less than /20, to avoid the inability to create machines later.
Container subnet and service subnet: Similarly, choose a subnet with sufficient IPs, recommended not less than /20, to avoid the inability to create Pods later.
Service forwarding mode: Make sure to select the IPVS mode.

Note:
When creating a CCE cluster, it is recommended to deselect the "Observability and local domain name resolution acceleration plugins". This is to avoid excessive consumption of node resources that may cause elastic scaling anomalies.

Click on Create Cluster and wait a few minutes for the creation to complete.
Once the cluster is created, go to the cluster details, Plugin Center, and install the CCE Cluster Elastic Engine Plugin.
Note:
During the elastic plugin deployment, select "Small Scale". This prevents the elastic scaling components of CCE from occupying too many node resources, which could lead to installation failure.

- Go to the cluster's Configuration Center, Network Configuration Tab, and enable Pod Access Metadata. Confirm and submit.

- Go to the cluster's Configuration Center, Cluster Auto-scaling Tab, enable Elastic Shrinkage, and check Ignore CPU and Memory Pre-allocation for DaemonSet Containers. Confirm and submit.

Step 3: Create a Public Node Pool for the CCE Cluster
Refer to Overview▸, users need to create a public node pool for CCE system components to deploy these components. Follow the steps below to create a compliant node pool.
- Enter the CCE cluster details created in Step 1, click the Node Management menu, and Create Node Pool. It is recommended to select at least 2 nodes with 4c8G models for deploying the CCE system components.

Step 4: Create IAM Delegation and AutoMQ Dedicated CCE Node Pool
Refer to Overview▸, users need to create a dedicated node pool for AutoMQ and the corresponding IAM delegation to facilitate subsequent instance deployment. Follow the steps below to create the IAM delegation and a compliant node pool.
- Go to the IAM console and create an IAM role without granting permissions for now.

- Navigate to the details of the CCE cluster created in step 1, click on the Node Management Menu, and select Create Node Pool.

- Follow the documentation below to set custom parameters and complete the creation of the node pool. Do not modify any parameters not explained in the table; use the default recommended values.
When creating a node pool, only single availability zone or three availability zones are supported. If a different number of availability zones is selected, instances cannot be created later.
Parameter Settings | Value Description |
---|---|
Node Pool Name |
|
Node Type |
Note: AutoMQ must run on a specified instance type VM. If a non-predefined instance type is selected for creating the node pool, the node pool cannot be used later. |
Availability Zone |
Note: AutoMQ requires that the availability zones for the subsequent cluster creation and node pool creation must be exactly the same. Therefore, if you need to create a single availability zone AutoMQ cluster, select a single availability zone node pool here; if you need to create a three availability zone AutoMQ cluster, select a three availability zone node pool here. The two cannot be mixed. |
Delegated Name |
Note: When creating an AutoMQ-exclusive node pool, it is recommended to create a new IAM delegation. Subsequently, assign corresponding operational permissions to this delegation in the AutoMQ console. Reusing other IAM delegations may cause permission overflow. |
Taint |
|

- Bind the delegation information to the node pool. The delegation is the IAM delegation created in the previous step. Also, add a taint to the node pool, the key of the taint is dedicated, the value is automq, and the effect is NO_SCHEDULE.

- After the node pool is created, click Elastic Scaling, enable the elastic scaling rule for specified availability zones (optional, if not configured, you need to manually add nodes).
When setting the elastic scaling rules for the node pool, ensure the following two configurations are correct:
Number of nodes range: It is recommended to retain at least 1 node. The range should be reasonably assessed based on the subsequent AutoMQ cluster scale. If the setting is too small, it will result in insufficient nodes for deployment.
Specification selection: Make sure to enable all machine types that meet the conditions in all available zones.

- Click the Scaling Menu of the node pool to expand the initial node capacity of the initial node pool. It is recommended to expand by 1 node for each availability zone.

Step 5: Enter the Environment Console and Create a Deployment Configuration.
Upon first entering the AutoMQ BYOC console, you need to create a deployment configuration to set up information such as the Kubernetes cluster information and OBS Bucket. Only then can you create an instance.
- Copy the Cluster ID of the CCE cluster created in Step 2.

- Find the Kubectl configuration menu and obtain the Kubeconfig configuration file.

Click on Kubectl configuration, set it to intranet access, and download the Kubeconfig configuration file.

Log in to the console, input the cluster ID and Kubeconfig configurations, and click Next.
Cloud Account ID: Enter the current cloud account main account ID, which can be found on the My Credentials page of the Huawei Cloud console.
Deployment Type: Select Kubernetes.
Kubernetes Cluster: Enter the cluster ID of the CCE cluster.
Kubeconfig: Enter the content copied in the previous step.
DNS ZoneId: Enter the ZoneId of the Private DNS used for deploying AutoMQ.
Bucket Name: Enter the data bucket used for storing messages when deploying AutoMQ. Multiple OBS buckets are supported.
Note:
The DNS Zone ID needs to be obtained from the browser address bar, and the Bucket must not duplicate any existing Ops Bucket.

- After filling in the cloud resource information, generate the permissions required for the data plane CCE node pool authorization. Refer to the console guide to create two custom authorization policies. Then bind these authorization policies to the AutoMQ IAM delegation created in step 4, and enter the name of the node pool delegation, click Next to preview.
Due to the constraints of Huawei Cloud's IAM product, the AutoMQ data plane cluster needs to be created separately with OBS permissions and ECS-related permissions attached.

- Preview the deployment configuration, complete the creation. You can then proceed to the instance management page to create an instance.