SuperAPI AI 工具集

gitops-workflow

办公与效率

查看项目

更新于 10-16 07:22

技能介绍

用途:为 Kubernetes 集群搭建声明式、基于 Git 的持续交付流程,使用 ArgoCD 或 Flux CD,遵循 OpenGitOps 原则(声明式、版本化不可变、自动拉取、持续协调)。

主要能力:ArgoCD 安装与初始密码获取、GitOps 仓库目录结构(apps/infrastructure/argocd)、Application 与 App of Apps 模式;Flux CD 的 CLI 安装与 bootstrap、GitRepository 与 Kustomization 资源;自动同步策略(prune、selfHeal、retry、interval、wait、timeout);渐进式发布(Argo Rollouts 金丝雀与蓝绿);密钥管理(External Secrets Operator、Sealed Secrets)。

必要用法:ArgoCD 安装示例:kubectl create namespace argocd;kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml。Flux 示例:brew install fluxcd/tap/flux;flux check --pre;flux bootstrap github --owner=org --repository=gitops-repo --branch=main --path=clusters/production --personal。排障命令:argocd app get my-app、argocd app sync my-app --prune、argocd app diff my-app。

适用场景:集群 GitOps 初始化、从 Git 自动部署应用、多集群管理、自动同步策略配置、渐进式交付与 GitOps 密钥管理。

限制:资料未提供具体版本兼容性、收费、性能数据与完整生产验证细节;示例命令与清单需按实际环境调整。