AgentSkillsCN

gitops-workflow

创建并管理生产环境下的 Grafana 仪表盘,实时可视化系统与应用的各项指标。当您需要构建监控仪表盘、可视化指标,或打造运营级可观测性界面时,可选用此技能。

SKILL.md
--- frontmatter
version: 4.1.0-fractal
name: gitops-workflow
description: Implement GitOps workflows with ArgoCD and Flux for automated, declarative Kubernetes deployments with continuous reconciliation. Use when implementing GitOps practices, automating Kubernetes deployments, or setting up declarative infrastructure management.

GitOps Workflow

Complete guide to implementing GitOps workflows with ArgoCD and Flux for automated Kubernetes deployments.

Purpose

Implement declarative, Git-based continuous delivery for Kubernetes using ArgoCD or Flux CD, following OpenGitOps principles.

Use this skill when

  • Set up GitOps for Kubernetes clusters
  • Automate application deployments from Git
  • Implement progressive delivery strategies
  • Manage multi-cluster deployments
  • Configure automated sync policies
  • Set up secret management in GitOps

Do not use this skill when

  • You need a one-off manual deployment
  • You cannot manage cluster access or repo permissions
  • You are not deploying to Kubernetes

Instructions

  1. Define repo layout and desired-state conventions.
  2. Install ArgoCD or Flux and connect clusters.
  3. Configure sync policies, environments, and promotion flow.
  4. Validate rollbacks and secret handling.

Safety

  • Avoid auto-sync to production without approvals.
  • Keep secrets out of Git and use sealed or external secret managers.

OpenGitOps Principles

  1. Declarative - Entire system described declaratively
  2. Versioned and Immutable - Desired state stored in Git
  3. Pulled Automatically - Software agents pull desired state
  4. Continuously Reconciled - Agents reconcile actual vs desired state

ArgoCD Setup

🧠 Knowledge Modules (Fractal Skills)

1. 1. Installation

2. 2. Repository Structure

3. 3. Create Application

4. 4. App of Apps Pattern

5. 1. Installation

6. 2. Create GitRepository

7. 3. Create Kustomization

8. Auto-Sync Configuration

9. Canary Deployment with ArgoCD Rollouts

10. Blue-Green Deployment

11. External Secrets Operator

12. Sealed Secrets