You can add existing Elastic Compute Service (ECS) instances to a cluster of Container Service for Kubernetes (ACK) in the ACK console. ECS instances can be added to an ACK cluster only as worker nodes. This topic describes how to manually and automatically add ECS instances to an ACK cluster.
Prerequisites
- Create a managed Kubernetes cluster.
- The ECS instances that you want to add belong to the security group of the worker nodes in the ACK cluster. The security group is automatically created when you initialize the cluster.
Before you use the cluster, take note of the following limits:
- By default, you can deploy up to 100 nodes in an ACK cluster. To add more nodes, Submit a ticket.
- The ECS instances to be added to the ACK cluster must be deployed in the same region and virtual private cloud (VPC) as the cluster.
- Before you add an existing Elastic Compute Service (ECS) instance to an ACK cluster, make sure that an elastic IP address (EIP) is attached to the ECS instance, or a Network Address Translation (NAT) gateway is created in the VPC where the ECS instance is deployed. This ensures that the ECS instance can access the Internet. Otherwise, the ECS instance cannot be added to the cluster.
- The ECS instances to be added must belong to the same account as the cluster.
- Nodes that run the following operating systems can be added to an ACK cluster:
- Alibaba Cloud Linux 2
- CentOS 7.x. CentOS 8.x and later are not supported.
- Windows Server 2009 and Windows Server 2009 Core.
Add ECS instances in auto mode
In auto mode, all ECS instances that are available under your account are listed. You can select, configure, and add one or more ECS instances to a cluster in the ACK console. After you complete the configurations, the ECS instances are automatically added to the cluster.
Add ECS instances in manual mode
In manual mode, you must obtain the installation command, log on to an ECS instance, and then run the command to add the ECS instance to an ACK cluster. You can add only one ECS instance at a time.