GitOps 的核心概念

GitOps 是通过 Git 仓库作为唯一真相源(SSOT),所有变更都通过 Git 控制。

如何用 ArgoCD 实现 GitOps?

  1. 安装 ArgoCD

    kubectl create namespace argocd kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

  2. 创建 GitOps 仓库,定义 K8s 资源文件。
  3. 配置 ArgoCD 监听 Git 仓库变更,自动应用部署。
Logo

一站式 AI 云服务平台

更多推荐