All Products
Search
Document Center

Container Service for Kubernetes:Upgrade a node pool

Last Updated:Oct 14, 2026

After upgrading a cluster's control plane, promptly upgrade its node pools during off-peak hours. ACK checks for risks before updating kubelet and the container runtime to help minimize disruptions.

Considerations

  • Preparations

    • Cluster upgrades use yum to download required software packages. If you manually modified node network configurations or used a custom operating system (OS) image, ensure that yum works correctly on your nodes. Run yum makecache to verify.

    • ACK does not fully validate custom OS images and cannot guarantee that they can be upgraded.

    • If you modified cluster configurations, for example, if you enabled swap or used non-productized methods, such as logging on to a node (Customize node pool kubelet configurations), to modify kubelet or runtime configurations, the cluster upgrade may fail or overwrite your custom configurations.

    • After you upgrade a cluster to version 1.18, ACK configures Node Resource Reservation Policy by default. If resource reservation is not configured and node resource usage is high, pods may not be scheduled promptly after being evicted. Reserve resources for your nodes. Keep CPU usage at or below 50% and memory usage at or below 70%.

    • In clusters running version 1.24 or earlier, pods configured with only a startup probe briefly enter the NotReady state after kubelet restarts. Deploy workloads with multiple replicas across nodes so that enough pods remain available during a node restart.

    • Keep at least 20% of your disk space free. This prevents pod eviction caused by insufficient disk capacity during an upgrade.

  • Node pool upgrade constraints

    • Node pool upgrades support only scale-out operations. Scale-in operations are not supported.

    • If you have unmanaged worker nodes that do not belong to a node pool, migrate them. For more information, see Migrate unmanaged nodes to a node pool.

    • During a disk replacement upgrade, ACK reinitializes nodes based on the current node pool configuration, including the logon method, labels, taints, OS image, and runtime version. Update the node pool configuration as described in Edit a node pool. Changes made by other methods are overwritten during the upgrade.

    • If a pod on a node references a HostPath that points to the system disk, the data in the HostPath directory will be lost after a disk replacement upgrade.

    • When you upgrade a node pool in a cluster of version 1.31 or earlier, the process also upgrades the NVIDIA Device Plugin and resets any of its non-standard configurations.

  • node scaling and scheduling

    • If node scaling is enabled, ACK automatically updates cluster-autoscaler to the latest version after the cluster upgrade to keep scaling available. Verify that cluster-autoscaler was updated. For more information, see Enable node autoscaling.

    • During a cluster upgrade, nodes with Scaling Mode set to Swift may fail to upgrade because they are shut down. If any nodes remain unupgraded because Swift was enabled, manually remove them.

  • Networking and service availability

    • If a pod accesses another pod on the same node through the SLB address of a LoadBalancer Service, and externalTrafficPolicy is set to Local, node rotation may place the pods on different nodes. This can interrupt connectivity.

    • During a disk replacement upgrade, ACK drains the nodes and evicts pods to other available nodes while respecting the Pod Disruption Budget (PDB). To ensure high availability, deploy workloads with multiple replicas across nodes and configure a PDB for critical services to limit simultaneous pod disruptions.

      The default timeout for draining a node is 30 minutes. If pod migration is not completed within this period, ACK terminates the upgrade to maintain service stability.

Features

A node pool upgrade provides the following operations:

  • Kubelet upgrade: Upgrades kubelet on each node to the control plane version. An in-place upgrade is used by default.

  • Container runtime upgrade: Upgrades the container runtime on nodes when a later runtime version is available.

    • Migrating from Docker to containerd performs a disk replacement upgrade, which replaces the system disk on each node and deletes all data on it. Back up critical system disk data before the upgrade. For more information, see Migrate the node container runtime from Docker to containerd.

    • Except for ContainerOS nodes, upgrading containerd to a later version uses an in-place upgrade by default. ACK replaces /etc/containerd/config.toml on each node with the version provided by ACK.

      Important
    • In clusters running Kubernetes versions earlier than 1.24, upgrading Docker uses a disk replacement upgrade by default and deletes all system disk data. Back up critical system disk data before the upgrade.

Procedure

  1. Log on to the ACK console. In the left navigation pane, click Clusters.

  2. On the Clusters page, click the name of your cluster. In the left navigation pane, click Nodes > Node Pools.

  3. On the Node Pools page, find the target node pool, click the image icon in the Actions column, and select Kubelet Update. Configure the following parameters.

    Parameter

    Description

    Kubelet Update Information

    View the current kubelet version and select the target version.

    Runtime Update Information

    View the current container runtime version and select the target version.

    • Migrating from Docker to containerd performs a disk replacement upgrade, which replaces the system disk on each node and deletes all data on it. For more information, see Migrate the node container runtime from Docker to containerd.

    • Clusters running Kubernetes 1.22 with containerd 1.6.34 installed do not support runtime upgrades.

    Update Nodes

    Select the nodes to upgrade: all or specific ones.

    Upgrade method

    Select In-place Upgrade or Upgrade by Replacing System Disk. See Reference: In-place and disk replacement upgrades.

    • In-place Upgrade: ACK updates the required components directly on existing nodes. An in-place upgrade does not replace the system disk or reinitialize the node, and data on the node is retained.

    • Upgrade by Replacing System Disk: ACK reinitializes nodes by replacing their system disk. Instance attributes such as name, ID, and IP address remain unchanged, but system disk data is deleted. Attached data disks are not affected.

    Ignore Warnings

    Whether to proceed if the precheck reports warnings. For example, a pod uses a hostPath pointing to the system disk.

    Batch Update Policy

    Maximum Number of Nodes per Batch

    Nodes are upgraded in batches up to this maximum. See Reference: In-place and disk replacement upgrades.

    Automatic Pause Policy

    Specifies when the upgrade pauses automatically.

    Interval Between Batches

    Sets the interval between batches when automatic pauses are disabled. Valid values: 5 to 120 minutes.

    Auto Snapshot

    To back up and restore important business data on a node's system disk, create snapshots before upgrading the node pool. Snapshots incur fees (see Snapshot billing), and their creation progress changes dynamically. After the upgrade, delete unneeded snapshots.

    Note

    For a disk replacement upgrade, consider enabling automatic snapshot creation. Snapshot fees apply. For billing details, see Snapshot billing.

  4. After configuring the parameters, click Precheck. If the precheck passes, follow the on-screen instructions to start the upgrade.

    Note

    If the precheck fails or returns warnings, see Fixes for failed check items or view the Check Report to troubleshoot.

    The following actions are available during the upgrade:

    • Pause: Puts the node pool in an intermediate state. Avoid other cluster operations and complete the upgrade promptly. Upgrades paused for more than seven days are automatically terminated, and related events and logs are cleared.

      Kubelet and container runtime versions on upgraded nodes cannot be rolled back.

    • Cancel: Cancels the upgrade. After you click Cancel, kubelet and container runtime versions on upgraded nodes cannot be rolled back.

    To verify the upgrade, go to the Nodes page, click a node name, and verify that the kubelet and container runtime versions on the Basic Information tab are as expected.

Reference: In-place and disk replacement upgrades

Upgrade processes

In-place and disk replacement upgrades use the same batch process. ACK first runs a pre-upgrade check on each node. Nodes that fail are skipped, and nodes that pass are upgraded in batches based on Maximum Parallel Nodes per Batch. Each batch contains no more than the configured maximum, and the next batch starts after the current batch completes.

For example, if the maximum is 2, ACK upgrades up to two nodes in each batch. If the maximum is 100, ACK upgrades up to 100 nodes in each batch. Valid values are 1 to 100.

The following figure shows upgrades when the maximum is set to 1, 2, or N. Each batch upgrades 1, 2, or N nodes, respectively.

image

In-place upgrade logic

  1. Perform a pre-upgrade check. If a critical exception is found in a container (for example, ttrpc requests cannot be served, or container processes do not respond to signals), the upgrade is stopped.

  2. Save the current state of containers and pods to a temporary directory.

  3. Upgrade containerd, crictl, and related configuration files to the versions provided by ACK, and restart containerd. Running containers are not affected. If you modified /etc/containerd/config.toml on the node, the upgrade overwrites your changes.

  4. Ensure that the kubelet is running properly and the node is ready.

Disk replacement upgrade logic

  1. Perform node draining. If the node is schedulable, the system sets it to unschedulable.

  2. Shut down the ECS instance, which stops the node.

  3. Replace the system disk. The system disk ID changes, but the cloud disk type, instance IP address, and elastic network interface MAC address remain the same.

  4. Reinitialize the node.

  5. Restart the node. The node becomes ready and is set to schedulable.

    If a node was unschedulable before the upgrade, it remains unschedulable afterward.

FAQ

Rollback after upgrade

Kubelet and container runtime versions cannot be rolled back after an upgrade. The OS can be rolled back only if the node pool still supports the original image.

Service impact during upgrade

In-place upgrade: Pods are not restarted, so services are not affected.

Disk replacement upgrade: ACK drains each node. Services remain available if Pods implement graceful shutdown (see Graceful shutdown and zero downtime deployments in Kubernetes) and replicas run across multiple nodes. Set the maximum number of concurrent upgrades lower than the number of Pod replicas to avoid upgrading multiple replicas in the same batch.

Upgrade batch duration

In-place upgrade: Within 5 minutes.

Disk replacement upgrade: Typically within 8 minutes if no snapshot is created. If snapshots are enabled, the upgrade starts after snapshot creation, and the duration depends on snapshot creation time. ACK waits up to 40 minutes for snapshot creation. If the snapshot is not complete within 40 minutes, the node upgrade times out before upgrade operations begin on that node. If you do not store business data on the system disk, you can skip snapshot creation to avoid prolonging the upgrade.

Data loss during upgrade

When upgrading the container runtime by replacing the system disk, back up any important system disk data beforehand. Data disks are not affected.

IP address changes after replacement

When the system disk is replaced, its ID changes, but the cloud disk type, instance IP address, and elastic network interface MAC address remain the same. See Replace the system disk (change the OS).

Upgrading unmanaged nodes

Clusters created before node pools were introduced may contain unmanaged nodes. Migrate the nodes to a node pool before upgrading them. For more information, see Migrate unmanaged nodes to a node pool.

Lingering Docker directory after migration

The Docker directory contains Kubernetes-managed files (containers, images, logs) and any custom paths you created. Delete it from the data disk after switching runtimes if no longer needed.

Restoring data from snapshots

Node snapshots created during a node pool upgrade are retained for seven days by default and can be deleted earlier. To recover from data loss after an upgrade, use one of the following methods.

Resolving the negative dentry issue

A kubelet or containerd upgrade runs systemctl daemon-reload. systemd then uses inotify to monitor directories associated with .path units and their parent directories, including /, /run, and /run/systemd by default. A large number of inodes in these directories can cause a kernel soft lockup and disrupt the node.

Because inode counts in these directories cannot be obtained directly, clear dentries during off-peak hours by running the following command:

echo 2 > /proc/sys/vm/drop_caches
If you confirm that directories associated with .path units and their parent directories do not contain large numbers of inodes, select Ignore Warnings to skip the check.

References