Preparation

This section takes the WordPress application as an example to describe how to migrate an application from Alibaba Cloud ACK to HUAWEI CLOUD CCE. Assume that you have deployed the WordPress application on Alibaba Cloud and created your own blog.

Precautions

Alibaba Cloud ACK differs from HUAWEI CLOUD CCE in certain functions. Evaluate the differences before migrating your applications.

Planning

Cluster Planning

CCE allows you to create the following types of clusters to meet your service requirements:

  • CCE cluster (recommended): supports hybrid deployment of VMs and bare-metal servers (BMSs), and heterogeneous nodes such as GPU-enabled and NPU-enabled nodes. CCE clusters provide a comprehensive, secure, and stable container runtime environment based on a high-performance network model.
  • Kunpeng cluster: manages only Kunpeng (Arm-based) VM nodes. Kunpeng clusters provide a secure and stable container runtime environment for pure Arm-based VM scenarios.

For the WordPress application in this example, a CCE cluster is recommended.

Network planning

CCE supports the following two network models:

  • Tunnel network: The container network is an overlay tunnel network on top of a VPC network and uses the VXLAN technology. This network model is applicable when there is no high requirements on performance. VXLAN encapsulates Ethernet packets as UDP packets for tunnel transmission. Though at some cost of performance, the tunnel encapsulation enables higher interoperability and compatibility with advanced features (such as network policy-based isolation), meeting the requirements of most applications.
  • VPC network: The container network uses VPC routing to integrate with the underlying network. This network model is applicable to performance-intensive scenarios. The maximum number of nodes allowed in a cluster depends on the route quota in a VPC network. Each node is assigned a CIDR block of a fixed size. VPC networks are free from tunnel encapsulation overhead and outperform container tunnel networks. In addition, as VPC routing includes routes to node IP addresses and the container CIDR block, container pods in the cluster can be directly accessed from outside the cluster.

For the WordPress application in this example, the VPC network is recommended.

Storage Planning

CCE supports the following storage modes:

  • EVS volumes: Mount an EVS volume to a container path. When containers are migrated, the attached EVS volumes are migrated accordingly. This storage mode is suitable for data that needs to be permanently stored.
  • SFS volumes: Create SFS volumes and mount them to a container path. The file system volumes created by the underlying SFS service can also be used. SFS volumes are applicable to persistent storage for frequent read/write in multiple workload scenarios, including media processing, content management, big data analysis, and workload analysis.
  • OBS volumes: Create OBS volumes and mount them to a container path. OBS volumes are applicable to scenarios such as cloud workload, data analysis, content analysis, and hotspot objects.
  • SFS Turbo volumes: Create SFS Turbo volumes and mount them to a container path. SFS Turbo volumes are fast, on-demand, and scalable, which makes them suitable for DevOps, containerized microservices, and enterprise office applications.

For the WordPress application in this example, EVS volumes are recommended.