Automated summary
A guide to setting up declarative continuous delivery on Kubernetes with ArgoCD or Flux CD following OpenGitOps principles.
Strengths
- Covers both major tools, ArgoCD and Flux CD, including installation commands and bootstrapping
- Proposes a clear GitOps repository layout separating apps, infrastructure and environments
- Ships concrete, reusable manifests (Application, App of Apps, GitRepository)
- States key safety rules: no auto-sync to production without approval, secrets kept out of Git
Limitations
- The Flux CD content is truncated: the resource creation section stops mid-way
- The guide stays general and does not detail the progressive delivery strategies it mentions
- No troubleshooting procedure for drift or stuck syncs
Use it when designing or industrializing a GitOps pipeline on Kubernetes with ArgoCD or Flux CD.
Avoid it for a one-off manual deployment, for non-Kubernetes targets, or when you lack control over cluster and repo permissions.
Security analysis
CautionThe skill provides legitimate GitOps setup guidance using powerful tools like kubectl, curl, and sudo. The commands are standard for installing ArgoCD and Flux, and the skill explicitly advises reviewing the Flux installer before executing it. No destructive or exfiltrating actions are present, but the execution context involves downloading and running remote scripts and applying cluster-wide changes, so caution is warranted.
- •Executes a downloaded shell script with sudo (flux install.sh) after manual review, which is a powerful action.
- •Applies Kubernetes manifests directly from remote GitHub URLs.
- •Retrieves the ArgoCD admin password and decodes it with base64.
- •Uses kubectl, brew, curl, and sudo, which can modify cluster and system state.
Examples
Help me install ArgoCD on my cluster and create an Application that auto-syncs apps/production/my-app from my gitops repo with prune and selfHeal enabled.Bootstrap Flux CD against my GitHub repo org/gitops-repo on the main branch with the clusters/production path, then set up a GitRepository for my app.Propose a GitOps repository layout for staging and production environments plus shared infrastructure, and explain the promotion flow between them.name: gitops-workflow description: "Complete guide to implementing GitOps workflows with ArgoCD and Flux for automated Kubernetes deployments." risk: critical source: community date_added: "2026-02-27"
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
- Define repo layout and desired-state conventions.
- Install ArgoCD or Flux and connect clusters.
- Configure sync policies, environments, and promotion flow.
- 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
- Declarative - Entire system described declaratively
- Versioned and Immutable - Desired state stored in Git
- Pulled Automatically - Software agents pull desired state
- Continuously Reconciled - Agents reconcile actual vs desired state
ArgoCD Setup
1. Installation
# Create namespace
kubectl create namespace argocd
# Install ArgoCD
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
# Get admin password
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
Reference: See references/argocd-setup.md for detailed setup
2. Repository Structure
gitops-repo/
├── apps/
│ ├── production/
│ │ ├── app1/
│ │ │ ├── kustomization.yaml
│ │ │ └── deployment.yaml
│ │ └── app2/
│ └── staging/
├── infrastructure/
│ ├── ingress-nginx/
│ ├── cert-manager/
│ └── monitoring/
└── argocd/
├── applications/
└── projects/
3. Create Application
# argocd/applications/my-app.yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: my-app
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/org/gitops-repo
targetRevision: main
path: apps/production/my-app
destination:
server: https://kubernetes.default.svc
namespace: production
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
4. App of Apps Pattern
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: applications
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/org/gitops-repo
targetRevision: main
path: argocd/applications
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated: {}
Flux CD Setup
1. Installation
# Install Flux CLI
brew install fluxcd/tap/flux
# Alternative: download the official installer, inspect it, then execute it
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
curl -fsSLo "$tmpdir/flux-install.sh" https://fluxcd.io/install.sh
cat "$tmpdir/flux-install.sh" # review the full installer before sudo
sudo bash "$tmpdir/flux-install.sh"
# Bootstrap Flux
flux bootstrap github \
--owner=org \
--repository=gitops-repo \
--branch=main \
--path=clusters/production \
--personal
2. Create GitRepository
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: my-app
namespace: flux-system
spec:
interval: 1m
url: https://github.com/org/my-app
ref:
branch: main
3. Create Kustomization
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: my-app
namespace: flux-system
spec:
interval: 5m
path: ./deploy
prune: true
sourceRef:
kind: GitRepository
name: my-app
Sync Policies
Auto-Sync Configuration
ArgoCD:
syncPolicy:
automated:
prune: true # Delete resources not in Git
selfHeal: true # Reconcile manual changes
allowEmpty: false
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
Flux:
spec:
interval: 1m
prune: true
wait: true
timeout: 5m
Reference: See references/sync-policies.md
Progressive Delivery
Canary Deployment with ArgoCD Rollouts
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: my-app
spec:
replicas: 5
strategy:
canary:
steps:
- setWeight: 20
- pause: {duration: 1m}
- setWeight: 50
- pause: {duration: 2m}
- setWeight: 100
Blue-Green Deployment
strategy:
blueGreen:
activeService: my-app
previewService: my-app-preview
autoPromotionEnabled: false
Secret Management
External Secrets Operator
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: db-credentials
spec:
refreshInterval: 1h
secretStoreRef:
name: aws-secrets-manager
kind: SecretStore
target:
name: db-credentials
data:
- secretKey: password
remoteRef:
key: prod/db/password
Sealed Secrets
# Encrypt secret
kubeseal --format yaml < secret.yaml > sealed-secret.yaml
# Commit sealed-secret.yaml to Git
Best Practices
- Use separate repos or branches for different environments
- Implement RBAC for Git repositories
- Enable notifications for sync failures
- Use health checks for custom resources
- Implement approval gates for production
- Keep secrets out of Git (use External Secrets)
- Use App of Apps pattern for organization
- Tag releases for easy rollback
- Monitor sync status with alerts
- Test changes in staging first
Troubleshooting
Sync failures:
argocd app get my-app
argocd app sync my-app --prune
Out of sync status:
argocd app diff my-app
argocd app sync my-app --force
Related Skills
k8s-manifest-generator- For creating manifestshelm-chart-scaffolding- For packaging applications
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/gitops-workflow-with-argocd-and-flux-mte1lj6g/download' --output '.skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g/SKILL.md.part' && mv '.skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g/SKILL.md.part' '.skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g/SKILL.md' && test -s '.skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/gitops-workflow' && cp -R '.skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g' '.claude/skills/gitops-workflow'Cursor
test -f '.skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g/SKILL.md' && test -s '.skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/gitops-workflow' && cp -R '.skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g' '.cursor/skills/gitops-workflow'Codex
test -f '.skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g/SKILL.md' && test -s '.skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/gitops-workflow' && cp -R '.skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g' '.agents/skills/gitops-workflow'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g'openskills read 'gitops-workflow-with-argocd-and-flux-mte1lj6g'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/gitops-workflow-with-argocd-and-flux-mte1lj6g/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Configure a Chat Channel with SecretRefs
DevOps
Set up chat channels using non-interactive commands, with secrets only as SecretRefs. Covers gather, mutate, repair, and prove steps for reliable delivery.
Investigate ClickHouse CI Failures
DevOps
Investigate a ClickHouse CI failure end-to-end from a PR or S3 report URL. Fetches failed tests, classifies flaky vs real regression, and checks for existing issues/fixes.
Ansible PR Review
DevOps
Reviews an Ansible PR following the project's standardized process, including changelog checks, test coverage validation, and feedback tracking.