SuperAPI AI 工具集

gitops-workflow

办公与效率

查看项目

更新于 10-16 02:36

技能介绍

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

主要能力:ArgoCD 安装与仓库结构(apps、infrastructure、argocd 目录)、Application 与 App of Apps 模式;Flux CD 的 CLI 安装与 bootstrap、GitRepository 与 Kustomization 资源;自动同步策略(prune、selfHeal、retry、interval、wait、timeout);渐进式发布(ArgoCD 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 安装:curl -s https://fluxcd.io/install.sh | sudo bash,随后 flux bootstrap github。排障可用 argocd app get、argocd app diff、argocd app sync。

适用场景:集群 GitOps 初始化、从 Git 自动部署应用、多集群管理、自动同步策略配置、GitOps 中的密钥管理。

限制:资料未提供具体版本兼容性、收费与平台支持范围;示例命令与清单需按实际环境调整。