商店现已上线

我们打造用于网站、AI 智能体和 LLM 训练的 Workstation AI 机器——在线配置并购买。

获取同行价格
AI 产品
AI 实验室OpenAI 智能体Claude 代理Grok BotWorkstation AI 原生 CRM营销所有产品
AI 解决方案
应用型 AIAI 智能体生成式 AIAI 自动化AI 技能提升中小企业 AI 套餐企业 AI 实验室AI 工作站NVIDIA 硬件与软件NVIDIA 加速计算私有 AIGPU 集群边缘 AI行业 AI
AI 服务
平台现代化数字工程数据基础与 AI自主运营AI 咨询DevOps 自动化网络安全软件开发智能体构建MLOps 搭建GPU 租赁
关于我们
公司我们的故事合作伙伴客户案例
AI 数据中心
AI 洞察Jev 系列基准测试实验室模型选择
技术说明
文档
Linux 操作系统UbuntuRed Hat Enterprise LinuxSUSE LinuxAlpine LinuxDebian, Rocky & AlmaLinux
AI 云平台AWS & Amazon BedrockGoogle Cloud & Vertex AIMicrosoft Azure & AI FoundryGPU 云与算力市场
私有 AI 数据中心面向律师事务所面向会计师事务所本地部署平台全面安全的云
工具Ring PromoterJobshout
新闻
博客
联系我们登录

面向现代企业的 AI 工作站、AI 多智能体软件、GPU 基础设施和智能代理解决方案。

联系我们

AI 解决方案

应用型 AIAI 智能体生成式 AIAI 自动化AI 技能提升中小企业 AI 套餐企业 AI 实验室行业 AI

产品

所有产品Workstation AI native CRM 与 ERP营销OpenAI 智能体Ring PromoterJobshout

公司

关于我们公司AI 数据中心为什么选择Workstation合作伙伴客户案例定价联系TenthMatrix

资源

AI 洞察技术说明文档Linux 操作系统AI 云平台私有 AI 数据中心博客搜索网站地图
英国办公室
77-79 Marlowes, Hemel Hempstead HP1 1LF路线指引 — 从 M25 外环伦敦 20 号出口驶出公司编号: 11641870周一至周五:上午 9:00 - 下午 6:00 GMT
+44 7515 356 146
比利时办公室
Workstation SRL, Rue Vanderkindere 34, 1180 Uccle, BrusselsBE 0751.518.683周一至周五:上午 9:00 - 下午 6:00 CET
+32 492 45 67 46
印度办公室
#159 Sector 9, Pocket 1, DDA Flats, 110077 Dwarka, New Delhi
+91 98881 98841

© 2026 Workstation AI。保留所有权利。

隐私数据删除Cookie服务条款网站地图

NVIDIA, the NVIDIA logo, RTX, RTX PRO, Blackwell, CUDA, NVLink, MGX, Omniverse, Spectrum-X, Quantum, BlueField, DGX and HGX are trademarks and/or registered trademarks of NVIDIA Corporation in the US and other countries. AMD, the AMD Arrow logo, EPYC, Instinct, Ryzen and Threadripper are trademarks of Advanced Micro Devices, Inc. Dell and PowerEdge are trademarks of Dell Inc. or its subsidiaries. Intel and Xeon are trademarks of Intel Corporation or its subsidiaries. AMAX, AceleMax and LiquidMax are trademarks of AMAX Engineering Corporation. All other product names, logos and brands are the property of their respective owners. We use them only to identify the products we describe, supply or support; their use does not mean their owners endorse us.

首页 / 技术说明 / Technology
MLOpsKubernetesDevOps

Kubeflow + Argo CD:Kubernetes 上的 GitOps MLOps

Kubeflow Pipelines、Trainer、KServe 与 Kueue 搭配 Argo CD GitOps 的架构地图:Git 布局、sync waves、晋升门控、金丝雀 serving、GPU FinOps 与上线清单

2026年7月20日Technology4 min read

本文为长篇参考。五分钟速览请见配套博客。

Kubernetes 上的 Kubeflow 与 Argo CD GitOps MLOps

1. 引言:MLOps 需要两个控制平面

Kubernetes 上的机器学习常以两种可预测方式失败。团队要么把训练当成一堆没有 lineage 的临时 Jobs,要么把 serving 当成一次性 kubectl apply、毫无审计轨迹。Kubeflow 与 Argo CD 分别解决该问题的两端。

Kubeflow 是 ML 控制平面:pipelines、分布式训练、实验跟踪、model registry 与 KServe。Argo CD 是交付控制平面:基于拉取的 GitOps,使集群状态与 Git 一致——包括 Kubeflow 平台本身以及每个生产 InferenceService。

本文面向平台与 MLOps 工程师,是一份实用架构指南。假定您熟悉 Kubernetes,并已了解基础 GitOps(参见我们此前的Argo CD & Flux 持续交付文章)。这里聚焦两套系统如何在 2026 年共同支撑 ML 工作负载。

2. 2026 Kubernetes MLOps 地图

生命周期阶段 工具 职责
Pipeline 编排Kubeflow Pipelines 2.x容器化步骤 DAG;可追踪 runs
分布式训练Kubeflow Trainer (TrainJob)PyTorch / JAX / XGBoost / DeepSpeed jobs
GPU 排队Kueue (+ optional Volcano)公平共享、gang scheduling、配额
模型 servingKServe自动扩缩 InferenceService;金丝雀分流
自动扩缩KEDA + HPA事件驱动扩缩,含 scale-to-zero
交付与回滚Argo CDGit 作为 manifests 的事实来源
可观测性Prometheus / Grafana / drift tools基础设施 + 模型质量信号

部分 pipeline 后端底层仍会出现 Argo Workflows,但编写应基于 Kubeflow Pipelines IR / v2,Kubernetes 资源持续交付应基于 Argo CD——不要把「Argo Workflows」与「Argo CD」混为一谈。

3. 清晰权属:Kubeflow 做什么 vs Argo CD 做什么

3.1 Kubeflow 负责

  • 编写并运行训练 / ETL / 评估 DAG
  • GPU 作业生命周期与实验元数据
  • 在 Model Registry 中注册模型版本与 lineage
  • 定义模型如何可能被 serving(runtime、资源)——常通过生成的 manifests

3.2 Argo CD 负责

  • 安装与升级 Kubeflow 组件(GitOps 平台)
  • 同步 pipeline 定义以及触发训练的 CronWorkflows
  • 跨环境晋升 InferenceService 变更
  • 通过 Git 历史实现即时、可审计回滚
硬性规则。 大型二进制(数据集、checkpoints、ONNX/SafeTensors 权重)绝不要进 Git。存入 S3/GCS/MinIO/PVC。Git 只保存指针(storageUri、digest、tags)以及 Argo CD 应用的 Kubernetes YAML。

4. 推荐 Git 布局

ml-platform/                 # Argo CD App: install Kubeflow once
  overlays/
    staging/
    production/
ml-apps/                     # Argo CD App-of-Apps or projects
  pipelines/
    fraud-detector/
  serving/
    fraud-detector/
      base/inferenceservice.yaml
      overlays/
        staging/
        production/
  components/                # reusable KFP components (OCI or YAML)

将 platform 与 application 同步分开。数据科学家对 ml-apps 提 PR;平台工程师拥有 ml-platform。使用 Argo CD Projects + RBAC,避免错误的 pipeline PR 改写 Kubeflow 控制平面。

5. 用 Argo CD 管理 Kubeflow

手动安装 Kubeflow 很脆弱:大量 CRD、顺序约束与升级路径。将平台视为 Argo CD Application(或 ApplicationSet),并具备:

  • Sync waves — 证书、存储、MySQL/Postgres(或托管 DB)、MinIO/S3 凭证,然后是 KFP / Trainer / KServe
  • Health checks — 在同步依赖应用前等待 CRD 与 webhooks 就绪
  • 生产环境托管服务 — 当超出一体机演示规模时,用 Cloud SQL/RDS 与 S3 替换集群内 MySQL/MinIO

Application 示意(仅作说明):

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: kubeflow-platform
  namespace: argocd
  annotations:
    argocd.argoproj.io/sync-wave: "0"
spec:
  project: ml-platform
  source:
    repoURL: https://git.example.com/org/ml-platform.git
    targetRevision: main
    path: overlays/production
  destination:
    server: https://kubernetes.default.svc
    namespace: kubeflow
  syncPolicy:
    automated:
      prune: false
      selfHeal: true
    syncOptions:
      - CreateNamespace=true
      - ServerSideApply=true

6. 将 Pipelines 作为 GitOps 资源

借助 Kubeflow Pipelines v2 / Kubernetes 原生 API,编译后的 pipelines 可作为集群资源管理。流程变为:

  1. 用 Python 编写 pipeline(KFP SDK)
  2. 编译为 YAML
  3. 提交到 ml-apps/pipelines/...
  4. Argo CD 同步;通过 UI、API 或同样存于 Git 的 CronWorkflow 触发 runs

始终为步骤设置CPU、内存与 GPU 限制。无界训练步骤对多租户集群的冲击会快于任何糟糕模型。

7. 模型晋升:registry → Git → Argo CD

这是关键交接:

  1. 训练 run 结束;评估指标达到阈值。
  2. Model Registry 记录带 URI + 元数据(accuracy、fairness、signer)的新版本。
  3. 自动化(或人工)打开 PR,更新 serving overlay 中的 storageUri(以及镜像标签 / runtime)。
  4. 合并后,Argo CD 滚动发布 KServe。优先金丝雀:将 canaryTrafficPercent 设为 10%,观察错误率与延迟后再晋升。
apiVersion: serving.kserve.io/v1beta1
kind: InferenceService
metadata:
  name: fraud-detector
spec:
  predictor:
    model:
      modelFormat:
        name: sklearn
      storageUri: s3://models/fraud/v1.4.2/
      resources:
        requests:
          cpu: "1"
          memory: 2Gi
        limits:
          cpu: "2"
          memory: 4Gi

回滚不是仪表盘上的一次点击——而是对该 URI 变更执行 git revert。Argo CD 将集群愈合到先前期望状态。

8. GPU、配额与 FinOps

  • 使用 Kueue,让 TrainJobs 等待公平 GPU 容量,而不是失败或超额订阅。
  • 在可能时为训练与延迟敏感推理分离 node pools。
  • 按 pipeline run 跟踪成本(GPU-seconds × 费率)。GitOps 并不取消 FinOps——它让支出可归因到某次 commit 与某个模型版本。
  • 对 NVIDIA 上的 MIG / time-slicing,在平台仓库中记录分区策略,使 Argo CD 管理的 DevicePlugin 配置保持一致。

9. 安全与多租户

  • Kubeflow Profiles 隔离团队;将其映射到 Argo CD Projects。
  • 将云凭证存入 Sealed Secrets / External Secrets——切勿把明文 ConfigMaps 放进 Git。
  • 要求 registry 元数据门控(如 fairness_score、sign_off_user),晋升机器人才能打开生产 PR。
  • 网络策略:训练作业不应需要无限制出站;serving pods 仅需模型存储与客户端。

10. 超越 pod 指标的可观测性

针对 GPU 利用率的 Prometheus 必要但不充分。接入:

  • Pipeline 失败告警(run 状态,而非仅 Deployment CrashLoop)
  • Serving SLO:延迟、错误率、饱和度
  • 可开工单或重新触发训练 CronWorkflow 的数据/模型漂移监控

漂移触发时,修复路径仍应是 GitOps:新 run → 新 URI → PR → Argo CD sync——而不是在节点上手动覆盖。

11. 上线清单

  1. 安装 Argo CD;创建 ml-platform 与 ml-apps 项目。
  2. 用 sync waves 以 GitOps 安装 Kubeflow;验证 KFP UI 与 KServe CRD。
  3. 搭建 object storage + Model Registry;记录 URI 约定。
  4. 接入一条黄金路径 pipeline(train → evaluate → register)。
  5. 在 Argo CD 下先加入带 staging overlay 的 InferenceService。
  6. 启用金丝雀晋升;演练 git revert。
  7. 在多团队上线前加入 Kueue 配额与 GPU FinOps 仪表盘。

12. 反模式

  • 为「方便」把 4 GB 权重文件提交到 Git LFS
  • 允许 notebook 对生产 InferenceServices 执行 kubectl apply
  • 单个 Argo CD Application 混入平台与全部团队 pipelines(爆炸半径)
  • 训练步骤没有资源限制
  • 混淆 Argo Workflows(执行)与 Argo CD(期望状态同步)
  • 跳过 staging——从笔记本实验直接晋升到生产流量

13. 何时不该使用此技术栈

在工作站上运行单个私有 LLM 的中小企业(参见我们的AI SME Packages)第一天不需要 Kubeflow + Argo CD。当你有多个模型、并发 GPU 用户、受监管的变更控制,或多个必须保持一致的环境时,再引入该架构。

14. 结论

Kubeflow 与 Argo CD 互补。Kubeflow 让 ML 工作在 Kubernetes 上可运行、可复现。Argo CD 让 ML 基础设施与模型 serving声明式、可审计、可回退。制胜模式很简单:产物在 object storage,指针与 YAML 在 Git,训练在 Kubeflow,交付与回滚在 Argo CD。

配套博客是可分享的摘要;本文是平台设计评审的参考。

由 Workstation 发布(workstation.co.uk)。


本文 SEO 快照

  • SEO 标题: Kubeflow + Argo CD:Kubernetes 上的 GitOps MLOps
  • Meta description: 如何将 Kubeflow Pipelines、Model Registry 与 KServe 与 Argo CD GitOps 结合,实现 Kubernetes 上可训练、可审计、可安全回滚的 ML。
  • 主要关键词: Kubeflow Argo CD, GitOps MLOps, KServe InferenceService, Kubeflow Pipelines GitOps, ML on Kubernetes
  • Twitter / X: Kubeflow 负责训练。Argo CD 负责交付。模型留在 object storage;Git 保存 URI。Workstation 完整 GitOps MLOps 指南。
  • LinkedIn: 我们发布了关于配对 Kubeflow 与 Argo CD 的深度解析:platform vs apps 的 Git 布局、晋升门控、金丝雀 serving、GPU 配额,以及通过 git revert 回滚。来自 Workstation 工程团队。
分享这篇文章

更多 Technology 内容

AI Is a Five-Layer Cake: What AI Is, How It Works and Why Every Layer Matters

AI Is a Five-Layer Cake: What AI Is, How It Works and Why Every Layer Matters

Jensen Huang's framework explained: energy, chips, infrastructure, models and applications, how each layer depends on the ones below, and what it means for your business.

阅读更多
Jensen Huang on Building the Dynamo of the Intelligence Age: AI Factories, Tokens and Jobs

Jensen Huang on Building the Dynamo of the Intelligence Age: AI Factories, Tokens and Jobs

Notes on NVIDIA founder Jensen Huang's Sequoia Capital interview: why computing is moving from retrieval to generation, why AI factories are this era's dynamos, and why AI changes tasks rather than erasing jobs.

阅读更多
Installing the NVIDIA Container Toolkit: Docker, containerd, CRI-O, Podman and Kubernetes

Installing the NVIDIA Container Toolkit: Docker, containerd, CRI-O, Podman and Kubernetes

Install the toolkit with apt, dnf or zypper, configure every container engine, use CDI, test GPU access, and fix the errors you will meet, with advice for running it across a fleet.

阅读更多