Home / Platform management / Clusters / Clusters / Take Over Cluster / Cluster of access / Import Tencent Cloud TKE cluster

Import Tencent Cloud TKE cluster

Integrate the deployed Tencent Cloud TKE standalone cluster or Tencent Cloud TKE managed cluster into the platform for unified management.

Tip: For the product introduction of TKE standalone cluster or Tencent Cloud TKE managed cluster, please refer to the official documentation .

Prerequisites

Get Image Registry Address

Determine if Additional Configuration Needed for Image Registry

  1. Execute the following command to determine if the specified repository supports HTTPS access and uses a certificate issued by a trusted CA authority:

    REGISTRY=<“GetrepositoryAddress”Obtained in SectionrepositoryAddress>
    
    if curl -s -o /dev/null --retry 5 --retry-delay 10 -- "https://${REGISTRY}/v2/"; then
        echo 'Passed the Check:repositoryUsing Trusted CA Certificate Issued by Certification Authority。No Need to Execute“Trust Non-Securerepository”Content of Section。'
    else
        echo 'Failed the Check:repositoryNot Supported HTTPS,Or Certificate is Not Trusted。Please Refer to“Trust Non-Securerepository”Configure in Section。'
    fi
  2. If the test fails, please refer to the common question How to trust an insecure repository? .

Get KubeConfig

  1. Log in to the Tencent Cloud Container Service Management Platform.

  2. In Cluster Details > Basic Information, check the information of Cluster APIServer.

  3. Download the Kubeconfig file to your local machine based on the actual network configuration, either for external network access or internal network access.

Cluster of access

  1. In the left navigation pane, click Clusters > Cluster of clusters.

  2. Click on Cluster of access.

  3. Configure the relevant parameters according to the following instructions.

    Parameter Description
    repository The repository that stores the platform components images required by the cluster.
    - Default repository: The repository configured when deploying global.
    - Private repository: A pre-built repository that stores the platform components. You need to enter the private repository address, port, username, and password to access the repository.
    - Public repository: Use a repository service located on the public network. Before using it, you need to refer to Updating public network repository cloud credentials to obtain repository authentication permissions.
    Cluster Information Note: You can manually fill in or upload the KubeConfig file for the platform to automatically parse and fill in.

    Parse KubeConfig file: After uploading the obtained KubeConfig file, the platform will automatically parse and fill in the Cluster Information, and you can modify the automatically filled information.

    Cluster Address: The access address of the cluster’s API Server exposed to the outside, used for the platform to access the cluster’s API Server.

    CA Certificate: The CA certificate of the cluster.
    Note: When manually entering, you need to enter the decoded certificate in Base64.

    Authentication Method: The authentication method used to access the cluster, which requires using a token or certificate authentication (client certificate and key) with cluster management permissions.
  4. Click on Check Connectivity to verify the network connectivity with the connected cluster and automatically identify the type of the connected cluster. The cluster type will be displayed as a badge in the top right corner of the form.

  5. After passing the connectivity check, click on Connect and confirm.

    Tip:

Network Configuration

To ensure global connectivity with the connected cluster network, please refer to the configuration related to accessing the cluster network .

What’s next

Deployment plugins

After successfully accessing the cluster, you can go to Plugin Management to select the necessary plugins for cluster deployment, including monitoring components, Log Agent, log storage components, etc.

Namespace under the tube cluster

After accessing the cluster, you can add the cluster to an existing project by creating a project based on the cluster or by adding a cluster associated with the project , thus associating the newly accessed cluster with the project.

Furthermore, by using the import namespace operation, existing Kubernetes namespaces within the cluster can be included and managed under the platform’s project.

FAQ

The Add node button is grayened after accessing the cluster. How to add nodes?

TKE Standalone Cluster and TKE Managed Cluster do not support adding nodes through the platform interface. Please add nodes in the background or contact the cluster provider to add them.

Which certificates are supported by the certificate management function of the access cluster?

  1. Kubernetes certificate: All access to the cluster only supports viewing the APIServer certificate information in the platform’s certificate management interface. It does not support viewing other Kubernetes certificates and does not support automatic rotation.

  2. Platform Component Certificate: All access to the cluster can view the platform component certificate information in the platform certificate management interface and support automatic rotation.

What other features do not support access to **TKE managed cluster ** and **TKE independent cluster **?