This topic describes how to create a node pool of sandboxed containers and a node pool of Docker containers for a cluster of Container Service for Kubernetes (ACK). ACK allows you to create node pools of different container runtime types for a cluster. However, all nodes in a node pool must use the same type of container runtime.
Prerequisites
Notice The ACK cluster must meet the following requirements:
- The ACK version must be 1.14.6 aliyun.1 or later.
- The network plug-in must be Flannel or Terway. Terway must run in One ENI for Multi-Pod mode.
- The volume plug-in must be CSI 1.14.8.39-0d749258-aliyun or later. You cannot use Flexvolume.
- The Logtail version must be 0.16.34.2-f6647154-aliyun or later.
Notes
- By default, you can deploy up to 100 nodes in an ACK cluster. To increase the quota of nodes, submit a ticket.
- Before you add an existing Elastic Compute Service (ECS) instance deployed in a virtual private cloud (VPC), 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 same VPC. In addition, you must make sure that the related node can access the public network. Otherwise, you fail to add the ECS instance.
Create a node pool that runs Docker containers
Create a node pool that runs sandboxed containers
Result
- Check the status of the created node pool on the Node Pools page. If the status of the created node pool displays Activated, the node pool is created.
- To view detailed information about the nodes in the node pool, connect to the ACK
cluster where the node pool is deployed.
- On the Node Pools page, click the name of the newly created node pool. In the Node Pool Information section, find and record the ID of the node pool.
- Connect to the ACK cluster where the node pool is deployed. For more information, see Use kubectl to connect to an ACK cluster.
- Run the following command to query the name of about a specified node:
kubectl get node --show-labels | grep -E "${node pool ID}|${node pool ID}"
- Run the following command to query detailed information about a specified node:
kubectl get node -o wide | grep -E "${node name} {node name}"
- On the Node Pools page, click the name of the newly created node pool. In the Node Pool Information section, find and record the ID of the node pool.