tencent cloud

Tencent Kubernetes Engine

Creating Registered Nodes (Direct Connect Edition)

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-11-16 19:47:45
Diterjemahkan & Diperiksa oleh AI
This section describes how to use the features of registered nodes (direct connect edition).

Usage Instructions

Before using the features of registered nodes, ensure that the servers and networks meet the constraints. For details, see Constraints and Network Modes.

Operation Steps

1. Installing OSs for Registered Nodes

Registered nodes have no mandatory operating system version restrictions. Currently, registered nodes (direct connect edition) support TencentOS Server and Ubuntu 18.04, 20.04, 22.04, and 24.04 LTS in GlobalRouter and VPC-CNI network modes. For better compatibility and technical support, TencentOS Server is recommended. Common operating systems are listed below:
OS Name
Description
TencentOS Server 3.1
It is fully compatible with the CentOS 8 user mode and uses the tkernel4 version deeply optimized based on the community 5.4 LTS kernel.
TencentOS Server 2.4(TK4)
Fully compatible with the CentOS 7 user mode, and comes with the tkernel4 version deeply optimized based on the community 5.4 LTS kernel.
Ubuntu 18.04 LTS
The default kernel version of some system images may be earlier than 5.4. Confirm the actual kernel version before access.
Ubuntu 20.04 LTS
Confirm that the actual kernel version is 5.4 or later before access.
Ubuntu 22.04 LTS
Confirm that the actual kernel version is 5.4 or later before access.
Ubuntu 24.04 LTS
Confirm that the actual kernel version is 5.4 or later before access.
Note:
Registered nodes require Linux kernel version 5.4 or later. If the actual kernel version is earlier than 5.4, upgrade the kernel before running the node initialization script. TencentOS Server is a Linux operating system developed by Tencent Cloud for cloud scenarios. It provides specific features and performance optimizations, delivering higher performance and a more secure and reliable runtime environment for applications on CVM instances. For more information, see TencentOS Server.

2. Installing NVIDIA-SMI Drivers (Required Only for GPU Nodes)

1. Registered nodes (direct connect edition) support GPU node pools. Users need to install the NVIDIA drivers and CUDA.
2. For NVIDIA driver download and installation, see:
NVIDIA Tesla Driver: Install the NVIDIA Tesla driver
NVIDIA GRID Driver: Install the NVIDIA GRID driver
3. To install CUDA, see Install CUDA.

3. Enabling Registered Node Features

The method for enabling registered node features varies depending on the network mode of TKE clusters. The following provides the specific operation steps:

3.1 Cilium-Overlay Network Mode Clusters

With unified Cilium Overlay networking across cloud and on-premises nodes, registered nodes can only be added to clusters whose network mode is Cilium Overlay. You can select an existing Cilium Overlay cluster or create a new one.
The steps for creating a Cilium Overlay cluster are as follows:
1. Log in to the TKE console. In the left sidebar, choose Clusters.
2. On the cluster management page, click New. For detailed operations, see Creating a Cluster.
3. In Cluster Information, fill in the fields as follows:
Container Network Plugin: Select Cilium-Overlay here. Note: This option is available only for TencentOS Server 2.4/2.6/3.1/3.2.
Subnet Selection: TKE creates a proxy ENI in the selected subnet to proxy access from registered nodes to cloud resources.
4. After a Cilium Overlay cluster is created, the registered node feature is enabled by default, requiring no manual action.

3.2 GlobalRouter and VPC-CNI Mode Clusters

In both network modes, users need to manually enable registered node features (direct connect edition). The steps are as follows:
1. Log in to the TKE console. In the left sidebar, choose Clusters.
2. On the Cluster Management page, click the cluster ID to go to the cluster basic information page.
3. In Node and Network Information, click

to the right of Registered Node Features to enable the features.
4. In the Enable Registered Node Features dialog box, configure the parameters as follows:
Direct Connect: Select Enable.
Select Subnet: Select a subnet for proxy access.
Proxy Access CIDR: TKE creates a proxy ENI in the selected subnet to proxy access from registered nodes to cloud resources. For details about the proxy access CIDR, see Registered Node Proxy Overview.
Container Network: Currently, only HostNetwork is supported by default.
Attention:
In GlobalRouter and VPC-CNI modes, Pods on registered nodes support only the HostNetwork network mode. For network details, see Network Modes.
5. Click Confirm Enable.
Attention:
To ensure the normal functioning of components including coredns, ipamd, csi-cbs-controller, l7-lb-controller, and csi-cbs-node, these components must run on cloud-based nodes. Therefore, enabling the features will add affinity scheduling properties to the components and trigger a Pod restart, which has the following impacts:
During the recreation of the ipamd component, Pod creation will temporarily stay in the Pending state due to IP address allocation failure. After the ipamd component recovers, Pod creation will automatically resume.
When the IPVS forwarding mode is used, an overly large ipvs-udp-timeout value can cause DNS resolution failures for services. For specific solutions, see Configuring Session Persistence.
6. Click Details next to "Supported Node Type: Direct Connect Edition" to view the details of enabling the direct connect edition.

4. Adding Registered Nodes

Creating a Registered Node Pool (Direct Connect Edition)

Note:
Registered nodes (direct connect edition) can only be managed through node pools. The direct connect edition supports GPU nodes, and CPU nodes and GPU nodes are managed in separate node pools.
1. Log in to the TKE console, and choose Clusters in the left sidebar.
2. On the Cluster Management page, select the target cluster ID to go to the cluster basic information page.
3. On the Node Management page, select Node Pool, and click Create.
4. Set the node type to Registered node, and click Create. On the Create Node Pool page, configure the parameters by following the instructions below.
Parameter Item
Description
Network type
As only Direct Connect is enabled here, keep the default Direct Connect selection. If both Direct Connect and Public Network Connection are enabled, select Direct Connect.
Node Type
Select the on-premises IDC node type. CPU nodes and GPU nodes are managed heterogeneously in separate node pools.
Node Pool Name
Enter a custom name based on business requirements to facilitate subsequent resource management.
Node Pool Type
Keep the default Registered node pool type.
Container Network
Keep the default HostNetwork mode.
Container Directory
Select the checkbox to set the container and image storage directory, and it is recommended to use a data disk, such as /var/lib/docker.
Runtime Component
Container runtime component. Valid values: Docker and containerd.
Runtime Version
Version of the container runtime component.
Cordon Initial Nodes
After Enable Cordon is selected, the node will no longer accept newly scheduled Pods. You need to manually uncordon the node or execute the uncordon command in custom data. Set this parameter as needed.
Label
Click Add Label to configure custom labels. Nodes created in this node pool will automatically have the labels configured here, which can be used to filter and manage third-party nodes by label in the future.
Taints
Node attributes, typically used in conjunction with Tolerations. You can set taints for all nodes in the node pool to ensure that non-compliant Pods cannot be scheduled onto these nodes, and any non-compliant Pods already running on these nodes will be evicted.
A taint generally consists of three elements: key, value, and effect. The valid values for effect usually include the following three:
PreferNoSchedule: A non-mandatory condition where the system attempts to avoid scheduling Pods onto nodes with taints that the Pods cannot tolerate.
NoSchedule: When a taint exists on a node, Pods without corresponding toleration must not be scheduled.
NoExecute: When a taint exists on a node, Pods without the corresponding toleration will not only fail to be scheduled onto that node, but existing Pods on the node will also be evicted. The following figure shows the console configuration for setting the taint key1=value1: PreferNoSchedule as an example:



Annotations
Click Add to configure custom Annotations settings.
Management
Click Add to configure custom Management settings.
Custom Kubelet Parameters
Click Add to configure custom Kubelet parameters on registered nodes.
Custom Data
Specify custom data to configure nodes by running the configured script upon node startup. Ensure that the script is reentrant and includes retry logic. The script and its generated log files can be viewed at /usr/local/qcloud/tke/userscript on the node.
5. Click Create Node Pool.

Adding Registered Nodes (Direct Connect Edition)

After successfully creating a registered node pool, there are no nodes in the node pool yet. Refer to the following steps to add registered nodes:
1. On the node pool list page, click the target node pool ID.
2. Go to the node pool details page, click Create Node, and obtain the node import script.
3. In the dialog box that appears, select the download method for the node initialization script, and copy or download the script, as shown in the following:
Public network: Selected by default. IDC nodes download the installation script file (31 KB) directly via the public network.
Private network: When user IDC nodes cannot access the public network, they download the installation script file via the private network through direct connect.
4. Execute the script on your machine.
Attention:
The script download link will expire in 1 hour. Since the script is downloaded through COS, you need to ensure that IDC nodes can access COS via the private network or public network.
5. Run the following commands to add nodes:
After the command to download the script is run, a file named in the format add2tkectl-<cluster_ID>-<node_pool_ID> will be generated locally. Then, run the install command of the script. After successful execution, the node will be registered to the cluster. Initially, the node may briefly appear as abnormal in the console as it pulls base images for initialization. It will become healthy after a short wait.
# Do not directly copy and run this command. Run the command based on the actual name of the downloaded script.
./add2tkectl-<cluster_ID>-<node_pool_ID> install
Note:
If an external node fails to be added due to the pre-installed Docker or Containerd component, run the following clear command first and try again.
./add2tkectl-cls-m57oxxxp-np-xxxx clear

Appendix

Introduction to the Registered Node Proxy

When enabling registered nodes (direct connect edition), the user needs to select a subnet and create a proxy ENI. The ENI then serves as the proxy to allow user nodes to access cloud resources. The principle is shown in the figure below:

After registered nodes (direct connect edition) is enabled, a VPC resource proxy shown in the figure above will be created under the user-selected VPC and subnet. This proxy service occupies a VPC IP address in the user-selected subnet to communicate with IDC nodes.
Through iptables rules, user IDC nodes will DNAT the CCR image access addresses, monitoring agent reporting addresses, and other service addresses such as cloud authentication to the IP address of the VPC resource proxy.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan