升级 Alauda Container Platform Argo Rollouts

先决条件

  1. 下载与平台架构对应的 Alauda Container Platform Progressive Delivery(以前称为 Alauda Container Platform Argo Rollouts)集群插件安装包。
  2. 使用 Upload Packages 机制上架安装包。
INFO

Upload Packages: 管理员 > Marketplace > Upload Packages 页面。 点击右侧的 帮助文档,获取如何将集群插件发布到集群的说明。有关更多详细信息,请参阅 CLI。

升级 Alauda Container Platform Argo Rollouts

操作步骤

  1. 登录 Web Console,然后切换到管理员视图。
  2. 转到集群 > 集群。
  3. 选择要升级的业务集群,然后打开其详情页面。
  4. 转到功能组件选项卡。
  5. 点击升级按钮。
INFO

如果升级到 v4.2.6,则需要执行以下步骤:

  1. 在全局集群上找到 argo-rollouts moduleinfo 实例:

    $ kubectl get moduleinfo | grep {cluster} | grep argo-rollouts

    {cluster} 是业务集群的名称。

  2. 根据集群的 argo-rollouts moduleinfo 名称,编辑 moduleinfo 以添加 valuesOverride 字段:

    $ kubectl edit moduleinfo {moduleinfo-name}

    按如下方式进行修改:

    spec:
      config: {}
      valuesOverride:
        acp/argoproj/chart/argo-rollouts:
          controller:
            initContainers:
            - args:
              - cp /bin/rollouts-plugin-trafficrouter-gatewayapi /plugins
              command:
              - /bin/sh
              - -c
              image: {registry address}/acp/argoproj-labs/rollouts-plugin-trafficrouter-gatewayapi:v0.6.0-6
              name: copy-gwapi-plugin
              resources:
                requests:
                  cpu: 100m
                  memory: 64Mi
                limits:
                  cpu: 200m
                  memory: 128Mi
                  ephemeral-storage: 500Mi
              volumeMounts:
                - mountPath: /plugins
                  name: gwapi-plugin

其中,需要替换 {registry address}