安装 Alauda Container Platform Argo Rollouts

NOTE

从 ACP 4.5 开始,Alauda Container Platform Argo Rollouts 更名为 Alauda Container Platform Progressive Delivery。从 Customer Portal 下载插件时,请搜索 Alauda Container Platform Progressive Delivery。重命名前发布的插件软件包在上传后,平台中仍显示为 Alauda Container Platform Argo Rollouts。

前提条件

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

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

安装 Alauda Container Platform Argo Rollouts

操作步骤

  1. 点击 Marketplace > Cluster Plugins,进入 Cluster Plugins 列表页面。
  2. 找到 Alauda Container Platform Progressive Delivery(对于重命名前发布的软件包,显示为 Alauda Container Platform Argo Rollouts)集群插件,点击 Install,进入 Install Alauda Container Platform Progressive Delivery Plugin 页面(对于此类软件包,则进入 Install Alauda Container Platform Argo Rollouts Plugin 页面)。
  3. 直接点击 Install,完成 Alauda Container Platform Progressive Delivery(此前为 Alauda Container Platform Argo Rollouts)集群插件的安装。
INFO

对于 v4.2.6 版本,安装后需要执行以下步骤:

  1. 在 global 集群中找到 argo-rollouts moduleinfo 实例:

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

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

  1. 根据集群的 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} 需要替换