tencent cloud

Tencent Kubernetes Engine

Creating a Registration Node (Public Network Edition)

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-10-23 15:49:20
Traduzido por IA
This document describes how to use the features related to the public network version of registered nodes.

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.
Attention:
The Tencent Cloud CLB service has been configured to use domains by default. For details, see the Domain-based Public CLB Launch Announcement. Additionally, users will not be allowed to directly access the service using the default domain names provided by the platform. For details, see the Domain-based Public CLB Domain Upgrade Announcement. Therefore, if you need to use the public network version of registered nodes, you must handle domain-related tasks. For instructions, see Configuring the Forwarding Domain for CLB.
If you need to register a custom domain name on Tencent Cloud (or migrate a domain name to Tencent Cloud) and add a CNAME record pointing to the CLB's default domain name, see the following steps for details.

Prerequisites

Installing an Operating System on a Registration Node

Registered nodes do not impose mandatory version restrictions on the operating system. TencentOS Server series is recommended for optimal compatibility and technical support. Commonly used 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)
It is fully compatible with the CentOS 7 user mode and uses the tkernel4 version deeply optimized based on the community 5.4 LTS kernel.
Note:
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, reliable runtime environment for applications on CVM instances.

Operation Steps

Step 1: Creating a TKE Standard Cluster

1. Log in to the TKE console and create a standard cluster through the console. For details, see Creating a Cluster (New Version).
2. Currently, the public network version of registered nodes can only be enabled for clusters with the Global Router container network. When creating a cluster, you must choose GlobalRouter mode under Container Network Configuration > Container Network Plugin.
Warning:
The container network configuration for registered nodes (public network version) cannot be modified after creation. Plan the container network CIDR block and the maximum number of Pods per node properly to ensure that the maximum number of nodes the cluster can accommodate under the current network configuration meets your business requirements. If the number of nodes exceeds the capacity defined in your network plan, you must migrate your workloads by recreating the cluster or nodes before you can scale out.

Step 2: Adding a Common Node

The public network version of registered nodes requires Tencent Cloud regular nodes to act as network proxies for network access between the registered nodes and the cluster API server. You can refer to the following steps to add regular nodes:
1. On the Cluster Management page, select the target cluster ID to go to the basic information page of the cluster.
2. On the Node Management > Nodes page, choose More Actions > Create Regular Node.
3. On the Create Node Management page, configure the settings according to the following prompts:
Recommended Configuration
Instance type: Specifications greater than 2 cores and 4 GB.
Number of CVMs: 2.
Public network bandwidth: ≥10 Mbps.
Mandatory Configuration
Security group: The inbound rules of the security group allow the port range 30000 - 32768 from source 0.0.0.0/0 for both TCP and UDP protocols, to be used for LoadBalancer-type Services forwarded via NodePort. For details, see TKE Security Group Settings.

Step 3: Enabling the Public Network Edition for the Registration Node

Note:
According to the Usage Notes, you must first prepare a custom domain name for the public-facing CLB service. This document uses test.example.io as an example. Refer to the Configuring the Forwarding Domain for CLB document. You need to purchase this domain name on Tencent Cloud or migrate it from another service provider to Tencent Cloud. You also need to complete the ICP filing for this domain name. After these steps, you can proceed with the configuration and access normally.
The method to enable it is as follows:
1. On the Cluster Management page, click the cluster ID to go to the cluster basic information page.
2. On the Basic Information > Node and Network Information page, click the

icon on the right side of the registered node capability to enable it.
3. In the Enable Registered Node Capability dialog box, select Enable Support at the "Public Network Connection" option. The process is illustrated below:
Attention:
Enter the custom domain name you have confirmed. This document uses test.example.io as an example. TKE signs this domain name by default to ensure that public network nodes can access the cloud cluster control plane through this domain.
4. Click Confirm Enable.
5. Click Details on the right side of Supported Node Type: Public Network Edition to view the details of enabling the public network edition. The Public Network Connection Address is the default access domain name configured for CLB.
6. Configure an A record in Tencent Cloud DNS to ensure that the custom domain name test.example.io resolves to the public network connection address.

Step 4: Creating a Registration Node Pool (Public Network Edition)

Note:
Registered nodes (public network edition) can only be managed through node pools. Currently, the public network edition only supports CPU nodes.
1. Log in to the TKE console and select Cluster 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
Select the default "Public Network Connection" because only the public network connection is enabled. If both "Dedicated Line Connection" and "Public Network Connection" are enabled, select "Public Network Connection".
Node Type
The public network edition of registered nodes currently supports only CPU nodes.
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 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
The container runtime component supports docker and containerd before version 1.24, and supports only containerd from version 1.24 onward.
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 Label settings. All nodes created under this node pool will automatically have the Labels set here added, which can be used to subsequently filter and manage registered nodes based on Labels.
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. The scheduler tries to avoid scheduling Pods onto nodes that have taints which the Pods cannot tolerate.
NoSchedule: When a taint exists on a node, Pods without the corresponding toleration must not be scheduled.
NoExecute: When a taint exists on a node, Pods without the corresponding toleration will fail to be scheduled onto that node, and existing Pods on the node will also be evicted.
Annotations
Click Add to configure custom Annotations settings.
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.

Step 5: Adding a Public Network Edition Registration Node

After you have successfully created a registered node pool (public network edition), the pool contains no nodes. See 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 Initialization Script section, select a download method for the node initialization resources, and then copy or download the script.
Attention:
Registered nodes (public network edition) can currently only be obtained via a public network. Therefore, ensure that the nodes you are adding can access this public network link. The download link is valid for one hour. Use this link to download the registration script within the validity period.
4. On your machine, run the command to download the edgectl script, and then run the following command to complete node addition:
#Pre-registration Environment Check
./edgectl check

#Perform Registration
./edgectl install [-n <nodename>] [-i <flannel-eth>]
#nodename specifies the name of the access node in the cluster.
#flannel-eth specifies the primary NIC of the access node. flannel implements cross-node pod interconnection based on this NIC.
Note:
If node addition fails because related docker or containerd components are installed on the registration node, first run the following cleanup commands and then add the node again.
./edgectl clear

Best Practices

After the public network version of registered nodes is enabled, a tunnel-proxy Pod is deployed by default in the edge-system namespace. This Pod contains an api-proxy container, which serves as an access proxy between the registered nodes and the API Server. To minimize resource consumption, the default req/limit settings are as follows:

If you need to add more than five nodes, purchase large-specification machines in the cloud. We recommend three machines with 4c/8g each, and modify the req/limit configuration of the api-proxy container.




Ajuda e Suporte

Esta página foi útil?

comentários