Import an existing CCE (Cloud Container Engine) cluster (public cloud) into the platform for unified management.
The Kubernetes version and parameters on the cluster meet the Standard Kubernetes Cluster Component Version and Parameter Requirements.
Ensure the cluster type is Huawei Cloud CCE cluster and the account has permissions to maintain the control plane. Turbo clusters are not currently supported.
Huawei Cloud CCE clusters do not have the ability to access external network resources by default after creation. Before importing the cluster, ensure that the cluster to be imported can access the platform access address.
To use the platform-deployed image registry from the global cluster deployment, execute the following command on the control node of the global cluster to obtain the address:
To use an external image registry, manually set the REGISTRY variable.
Execute the following command to determine whether the specified image registry supports HTTPS access and uses certificates issued by trusted CA authorities:
If the test fails, please refer to the FAQ How to trust an insecure image registry?.
Ensure network connectivity with the Huawei Cloud console.
Access the Cluster Management page of the Cloud Container Engine CCE feature; find the cluster to be imported and click the cluster name to enter the details page.
As shown in the figure below, follow the navigation to find the download KubeConfig file button: Cluster Information - Connection Information - kubectl - Configuration, and download the KubeConfig file.
The KubeConfig file of public cloud clusters cannot be directly used for cluster import.
Please refer to the FAQ How to obtain cluster information? to obtain the import cluster token.
In the left navigation bar, click Cluster Management > Clusters.
Click Import Cluster.
Configure the Image Registry related parameters according to the following instructions.
| Parameter | Description |
|---|---|
| Image Registry | Repository for storing platform component images required by the cluster. - Platform Default: Image registry configured during global cluster deployment. - Private Registry: Pre-built registry storing platform required components. You need to enter the private image registry address, port, username, and password for accessing the image registry. - Public Registry: Use image registry services located on the public network. Before use, you need to first refer to Update Public Image Registry Cloud Credentials to obtain registry authentication permissions. |
| Cluster Information | Tip: Please upload the KubeConfig file for automatic parsing and filling by the platform. Cluster Address: The access address of the API Server exposed by the imported cluster, used for the platform to access the API Server of the imported cluster. CA Certificate: The CA certificate of the imported cluster. Authentication Method: The authentication method of the imported cluster, which requires using a token with cluster management permissions created in the previous step for authentication. |
Click the Parse KubeConfig File button and submit the KubeConfig file downloaded in the previous step. The platform will automatically parse and fill in the Cluster Information related parameters.
Click Check Connectivity to check network connectivity with the imported cluster and automatically identify the type of the imported cluster. The cluster type will be displayed as a badge in the upper right corner of the form.
After connectivity check passes, click Import and confirm.
Tips:
icon on the right side of a cluster in Importing status to view the cluster's execution progress (status.conditions) in the popup Execution Progress dialog.To ensure network connectivity between the global cluster and the imported cluster, you must refer to Imported Cluster Network Configuration.
After importing the cluster, if you need to use Ingress (inbound rules) and storage-related features, please refer to Huawei Cloud CCE Cluster Ingress Initialization Configuration and Huawei Cloud CCE Cluster Storage Initialization Configuration.
Adding nodes through the platform interface is not supported. Please contact the cluster provider to add nodes.
Kubernetes Certificates: All imported clusters only support viewing APIServer certificate information in the platform certificate management interface. Viewing other Kubernetes certificates and automatic rotation are not supported.
Platform Component Certificates: All imported clusters can view platform component certificate information in the platform certificate management interface and support automatic rotation.
Audit data retrieval is not supported.
ETCD, Scheduler, and Controller Manager related monitoring information are not supported. APIServer partial monitoring charts are supported.
Cluster certificate related information other than Kubernetes APIServer certificates cannot be retrieved.