Canary deployment for ACK cluster components

更新时间:
复制 MD 格式

The component management feature for Container Service for Kubernetes (ACK) lets you install components in batches. You can use several canary deployment strategies, including those based on a specific number of nodes, a percentage of nodes, or ACK node labels. This topic explains how to use canary deployment to install components in the SysOM console.

Limitations

  • Region limitations

    • Number- and percentage-based strategies

      This feature is only available in the Chinese mainland and Hong Kong (China).

    • ACK node label strategy

      This feature is only available in the following regions and availability zones. To request support for additional regions or availability zones, join the SysOM user group on DingTalk (group ID: 94405014449) for assistance.

      Region

      Region ID

      Availability zone

      China (Hangzhou)

      cn-hangzhou

      B, G, H, I, J, K

      China (Beijing)

      cn-beijing

      C, D, E, F, G, H, I, K

      China (Ulanqab)

      cn-wulanchabu

      A, B, C

      China (Shenzhen)

      cn-shenzhen

      A, C, D, E, F

      China (Chengdu)

      cn-chengdu

      A, B

  • Operating system limitations

    Architecture

    Operating system

    x86 architecture

    • Rocky Linux 9.5

    • Rocky Linux 9.1

    • Ubuntu 20.04

    • Container-optimized Alibaba Cloud Linux 3

    • Rocky Linux 8.8

    • Ubuntu 22.04

    • Alibaba Cloud Linux 3 Pro

    • Alibaba Cloud Linux 2/3

    • CentOS 7.6 or later, or CentOS 8

    • Anolis OS 7/8

    • Ubuntu 24.04

    Arm architecture

    • Alibaba Cloud Linux 3 Pro

    • Alibaba Cloud Linux 3

Prerequisites

  • If you are a RAM user, ensure that your Alibaba Cloud account (root account) has granted you the AliyunECSReadOnlyAccess and AliyunSysomFullAccess system policies. For more information, see Grant permissions to a RAM user.

  • The SysOM service must be enabled.

    When you first log on to the SysOM console, click Activate Service.

Procedure

  1. Go to the Component Management page in the SysOM console.

  2. Select the component to install and click Install.

  3. In the upper-left corner of the page, select the region where your target instance is located.

    image

  4. Set Component Operation to Install and Operation Mode to Cluster, and then select the target clusters.

  5. Expand Advanced Options (optional), turn on the Canary Deployment switch, and then select a canary deployment strategy.

    Policy type

    Description

    Notes

    Label (Recommended)

    Installs the component on nodes with the specified labels.

    A node is selected if it has any of the specified labels.

    Note

    The first time you use this strategy, click Authorize to grant the component the required ACK RBAC permissions.

    Number

    Installs the component on a specified number of randomly selected nodes from the target cluster.

    If the number of nodes in a cluster drops below the specified number due to a scale-in event, the component is installed on all remaining nodes.

    Percentage

    Installs the component on a specified percentage of randomly selected nodes from the target cluster.

    The number of selected nodes is calculated by multiplying the total number of ACK nodes by the specified percentage (M * N%) and then rounding down to the nearest integer.

  6. Click Execute. The installation status is displayed. You can click View Details to check the execution status of each instance.

  7. If you no longer need the label-based canary deployment strategy, you can revoke the component's permissions for the cluster.