gitops-workflows
GitOps workflows and patterns using ArgoCD and Flux for declarative Kubernetes deployments. Use when implementing CI/CD for Kubernetes, managing multi-environment deployments, or adopting declarative infrastructure practices.
What this skill does
# GitOps Workflows Expert guidance for implementing production-grade GitOps workflows using ArgoCD and Flux CD, covering declarative deployment patterns, progressive delivery strategies, multi-environment management, and secure secret handling for Kubernetes infrastructure. ## When to Use This Skill - Implementing GitOps principles for Kubernetes deployments - Automating continuous delivery from Git repositories - Managing multi-cluster or multi-environment deployments - Implementing progressive delivery (canary, blue-green) strategies - Configuring automated sync policies and reconciliation - Managing secrets securely in GitOps workflows - Setting up environment promotion workflows - Designing repository structures for GitOps (monorepo vs multi-repo) - Implementing rollback strategies and disaster recovery - Establishing compliance and audit trails through Git ## Core Concepts ### The Four Principles 1. **Declarative**: Entire system state expressed in code 2. **Versioned**: Canonical state stored in Git with full history 3. **Pulled Automatically**: Agents pull desired state (no push to prod) 4. **Continuously Reconciled**: Automatic drift detection and correction ### Key Benefits - Complete deployment history and audit trail - Fast rollback via Git operations - Enhanced security (no cluster credentials in CI) - Self-healing infrastructure - Multi-cluster consistency - Familiar Git workflows for infrastructure changes ## Quick Reference | Task | Load reference | | --- | --- | | GitOps principles and benefits | `skills/gitops-workflows/references/core-principles.md` | | Repository structure patterns (monorepo, multi-repo, branches) | `skills/gitops-workflows/references/repository-structures.md` | | ArgoCD setup, Applications, ApplicationSets | `skills/gitops-workflows/references/argocd-implementation.md` | | Flux bootstrap, sources, Kustomizations, HelmReleases | `skills/gitops-workflows/references/flux-implementation.md` | | Environment promotion strategies | `skills/gitops-workflows/references/environment-promotion.md` | | Secret management (Sealed Secrets, ESO, SOPS) | `skills/gitops-workflows/references/secret-management.md` | | Progressive delivery (canary, blue-green) | `skills/gitops-workflows/references/progressive-delivery.md` | | Rollback strategies and disaster recovery | `skills/gitops-workflows/references/rollback-strategies.md` | | Best practices and patterns | `skills/gitops-workflows/references/best-practices.md` | ## Workflow Steps ### 1. Choose Repository Structure **Decision factors:** - Team size and organization structure - Application coupling and dependencies - Access control requirements - Deployment frequency and independence **Options:** - **Monorepo**: Single repo, unified platform teams, shared infrastructure - **Multi-repo**: Separate repos per app/team, independent release cycles - **Environment branches**: Git flow style, simple mental model ### 2. Select GitOps Tool **ArgoCD:** - UI-focused with visual application management - App of Apps pattern for hierarchical deployments - ApplicationSets for multi-cluster deployments - Strong RBAC and project isolation **Flux:** - CLI-first, GitOps Toolkit architecture - Native Kustomize and Helm support - Automated image updates - Lighter weight, cloud-native ### 3. Configure Secret Management **Never commit unencrypted secrets to Git** **Options:** - **Sealed Secrets**: Client-side encryption, simple workflow - **External Secrets Operator**: Sync from external secret stores (AWS, Vault, GCP) - **SOPS**: File-based encryption with age or cloud KMS ### 4. Implement Sync Policies **Non-production environments:** - Automated sync with `prune` and `selfHeal` - Frequent reconciliation (1-5 minutes) - Fail fast with immediate feedback **Production environments:** - Manual approval or gated automation - Health checks and wait conditions - Progressive delivery for high-risk changes - Sync windows for maintenance periods ### 5. Set Up Environment Promotion **Promotion strategies:** - **Git-based**: Tag or branch promotion with Git operations - **Kustomize overlays**: Update image tags in environment-specific overlays - **Automated updates**: Flux ImageUpdateAutomation for semver policies ### 6. Configure Progressive Delivery **For high-risk changes:** - **ArgoCD Rollouts**: Canary deployments with automated analysis - **Flagger**: Progressive delivery with metric-based promotion - Traffic shifting with Istio or other service mesh - Automated rollback on failed analysis ### 7. Establish Rollback Procedures **Git rollback:** - `git revert` for specific commits - Tag-based rollback by updating targetRevision - Fast and declarative **Tool-specific:** - ArgoCD: `argocd app rollback` with revision history - Flux: Suspend automation, manual rollback, resume ## Common Mistakes 1. **Committing unencrypted secrets** - Always use secret management solution 2. **No automated sync in non-prod** - Slows development feedback 3. **Automated sync in production without gates** - High risk of breaking changes 4. **Ignoring drift detection** - Manual changes should be reconciled or alerted 5. **No health checks** - Sync succeeds but app is unhealthy 6. **Missing dependency ordering** - Apps deploy before infrastructure ready 7. **No rollback testing** - Discover issues during actual incidents 8. **Inconsistent environments** - Staging differs too much from production 9. **No promotion testing** - Manual errors during environment promotion 10. **Weak RBAC** - Too many permissions for GitOps service accounts ## Resources - **OpenGitOps**: https://opengitops.dev/ - **ArgoCD Documentation**: https://argo-cd.readthedocs.io/ - **Flux Documentation**: https://fluxcd.io/docs/ - **ArgoCD Rollouts**: https://argoproj.github.io/argo-rollouts/ - **Flagger**: https://docs.flagger.app/ - **External Secrets Operator**: https://external-secrets.io/ - **Sealed Secrets**: https://github.com/bitnami-labs/sealed-secrets - **SOPS**: https://github.com/mozilla/sops
Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.