This topic describes how to upgrade components in an edge cluster. This allows you to perform fine-grained version upgrades in a cluster of the latest version.

Prerequisites

Procedure

  1. Log on to the Container Service for Kubernetes (ACK) console.
  2. In the left-side navigation pane, click Clusters.
  3. On the Clusters page, find the cluster for which you want to upgrade the components and choose More > Manage System Components in the Actions column.
  4. On the Add-ons page, find the edge-controller-manager component and click Upgrade in the Actions column.
    After the component is upgraded, wait five minutes and check the cluster status.
    • Check whether the cluster is in the Running state.
    • Check whether all nodes in the cluster are ready for use.
    • Check whether pods are in the Running state.
  5. On the Add-ons page, find the kube-flannel-ds component and click Upgrade in the Actions column.
  6. Upgrade the edge-tunnel-server and edge-tunnel-agent components.
    1. To manually delete the DaemonSets, Deployments, and Services that are related to the frps or frpc component, perform the following steps:
      1. In the left-side navigation pane, click Clusters.
      2. On the Clusters page, click the name of the cluster that you want to mange or click Details in the Actions column.
      3. On the details page of the cluster, click the Connection Information tab. Click the Public Access tab and copy the content of the kubeconfig file of the cluster to the $HOME/.kube/config file in your on-premises machine.
      4. Run the following command:
        docker run -v ~/.kube:/root/.kube registry.cn-hangzhou.aliyuncs.com/acs/edge-upgrade-addon:v1.0 tunnel
    2. On the Add-ons page, find the edge-tunnel-server component and click Upgrade in the Action column.
    3. On the Add-ons page, find the edge-tunnel-agent component and click Upgrade in the Actions column.
  7. On the Add-ons page, find the metrics-server component and click Upgrade in the Actions column.
    Note Ignore the prompt that asks you to install Logtail.