Import Huawei Cloud CCE Cluster (Public Cloud)
Import an existing CCE (Cloud Container Engine) cluster (public cloud) into the platform for unified management.
TOC
Prerequisites
-
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.
Obtain Image Registry 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.
Determine if Image Registry Requires Additional Configuration
-
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?.
Obtain Cluster Information
-
Ensure network connectivity with the Huawei Cloud console.
-
Access the Cluster Management page of the
Cloud Container Engine CCEfeature; 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.
Obtain Import Cluster Token
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.
Import Cluster
-
In the left navigation bar, click Cluster Management > Clusters.
-
Click Import Cluster.
-
Configure the
Image Registryrelated parameters according to the following instructions. -
Click the
Parse KubeConfig Filebutton and submit the KubeConfig file downloaded in the previous step. The platform will automatically parse and fill in theCluster Informationrelated 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:
- Click the
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. - After successful cluster import, you can view the cluster's key information in the cluster list. The cluster status displays as normal and you can perform cluster-related operations.
- Click the
Network Configuration
To ensure network connectivity between the global cluster and the imported cluster, you must refer to Imported Cluster Network Configuration.
Follow-up Operations
Ingress (Inbound Rules) and Storage Initialization
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.
FAQ
After importing the cluster, the add node button is grayed out. How to add nodes?
Adding nodes through the platform interface is not supported. Please contact the cluster provider to add nodes.
What certificates does the certificate management feature support for imported clusters?
-
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.
What other features are not supported for imported Huawei Cloud CCE clusters?
-
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.