Gitops workflows

From NickCrew/Claude-Cortex · View interactive version

Gitops workflows is an AI agent skill from the GitHub repository NickCrew/Claude-Cortex. 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.

How to use this skill

Skill file

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

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

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:

Options:

2. Select GitOps Tool

ArgoCD:

Flux:

3. Configure Secret Management

Never commit unencrypted secrets to Git

Options:

4. Implement Sync Policies

Non-production environments:

Production environments:

5. Set Up Environment Promotion

Promotion strategies:

6. Configure Progressive Delivery

For high-risk changes:

7. Establish Rollback Procedures

Git rollback:

Tool-specific:

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.