通过平台创建 Argo CD Application

本文将介绍通过平台的 GitOps Applications 完成创建 Argo CD Application 的完整流程,实现对应用的 GitOps 管理。

使用场景

  • 通过平台创建一个 SpringBoot Argo CD Application,体验通过 GitOps 管理应用的完整流程。

前提条件

操作步骤

按照以下步骤使用该功能:

代码仓库配置

如果在 Create GitOps Applications 详情页中未看到集成代码仓库,可以先进行代码仓库集成:

INFO

如果没有可用的代码仓库,可以使用演示仓库进行演示。 仓库地址https://github.com/argoproj/argocd-example-apps.git 说明:该仓库包含示例应用,可用于演示和测试 Argo CD 功能。

通过 GitOps Applications 创建 Argo CD Application

  1. Container Platform 中,点击 GitOps Applications

  2. 点击 Create GitOps Application

  3. Basic InfoCode Repository 区域,按照以下说明配置相关信息。

参数输入内容
TypeApplication
SourceArgo CD Integration
Integrated Project Nameargocd-example-apps
Version IdentifierBranch
master
Source File TypeHelm
Source File Directoryhelm-guestbook
Custom Valuesvalues.yaml
  1. Distribution 中,使用平台推荐的 Namespace,或选择其他命名空间。

  2. 同步策略默认设置为 Manually Sync

  3. 点击 Create