Import Tencent Cloud TKE Cluster
Import existing Tencent Cloud TKE Dedicated clusters or Tencent Cloud TKE Managed clusters into the platform for unified management.
For product introduction of TKE Dedicated clusters or Tencent Cloud TKE Managed clusters, please refer to the official documentation.
TOC
Prerequisites
-
The Kubernetes version and parameters on the cluster meet the component version and parameter requirements for importing standard Kubernetes clusters.
-
The image registry must support HTTPS access and provide a valid TLS certificate issued by a public certificate authority.
Obtain Image Registry Address
-
To use the platform-deployed image registry configured during 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 a certificate issued by a trusted CA:
-
If verification fails, please refer to the FAQ How to trust an unsafe image registry?.
Obtain KubeConfig
-
Log in to the Tencent Cloud Container Service management platform.
-
In Cluster Details > Basic Information, view the Cluster APIServer information.
-
Select Internet Access or Intranet Access based on the actual customer network, then download Kubeconfig and save it to your local computer.
Import Cluster
-
In the left navigation bar, click Cluster Management > Clusters.
-
Click Import Cluster.
-
Configure the relevant parameters according to the following instructions.
-
Click Check Connectivity to verify network connectivity with the cluster to be imported and automatically identify the type of cluster to be imported. 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.
Tip:
- Click the Details 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 cluster-related operations can be performed.
Network Configuration
Ensure network connectivity between the global cluster and the cluster to be imported. You must refer to Network Configuration for Importing Clusters.
FAQ
After importing the cluster, the "Add Node" button is grayed out. How to add nodes?
Both TKE Dedicated clusters and TKE Managed clusters do not support adding nodes through the platform interface. Please add them in the backend or contact the cluster provider to add them.
What certificates does the certificate management function for imported clusters support?
-
Kubernetes Certificates: All imported clusters only support viewing APIServer certificate information in the platform certificate management interface. They do not support viewing other Kubernetes certificates and do not support automatic rotation.
-
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 TKE Managed clusters and TKE Dedicated clusters?
-
TKE Managed clusters do not support obtaining audit data.
-
TKE Managed clusters do not support ETCD, Scheduler, Controller Manager related monitoring information, but support partial APIServer monitoring charts.
-
Both TKE Managed clusters and TKE Dedicated clusters do not support obtaining cluster certificate-related information except for Kubernetes APIServer certificates.