This topic describes how to upgrade components in an edge cluster of the latest version, in the case that new component versions are available.

Prerequisites

Procedure

  1. Log on to the Container Service console.
  2. In the left-side navigation pane, choose Cluster > Cluster. The Clusters page appears.
  3. In the Actions column of the target cluster, choose More > Component Upgrade.
  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 for 5 minutes and check the cluster status.
    • Check whether the cluster is running.
    • Check whether all nodes in the cluster are ready.
    • Check whether pods are running.
  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. Manually delete the DaemonSets, deployments, and services related to the frps or frpc component by following these steps:
      1. In the left-side navigation pane, choose Cluster > Cluster. On the Clusters page, click the name of the target cluster. The Basic Information page appears.
      2. Click the KubeConfig (Public Access) tab. Copy the content of the kubeconfig file of the cluster to the $HOME/.kube/config file on the local computer.
      3. Run the following command:
        docker run -v ~/.kube:/root/.kube registry.cn-hangzhou.aliyuncs.com/edge-kubernetes/edge-upgrade-addon:v1.0 tunnel
    2. On the Add-ons page, find the edge-tunnel-server component and click Install in the Actions column.
    3. On the Add-ons page, find the edge-tunnel-agent component and click Install 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 asking you to install Logtail.