ArgoCD | Sheetly Cheat Sheet

Last Updated: November 21, 2025

ArgoCD

GitOps continuous delivery for Kubernetes

Core Concepts

Item Description
Application K8s resources defined in Git
Project Logical grouping of apps
Sync Deploy from Git to cluster
Auto-Sync Automatic deployment
Self-Heal Auto-fix drift from desired state
Prune Delete resources not in Git

Common Commands

argocd app create myapp
Create application
argocd app sync myapp
Deploy application
argocd app diff myapp
Show differences
argocd app set myapp --auto-sync
Enable auto-sync
argocd app list
List applications
argocd app delete myapp
Delete application

Application YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: myapp
spec:
  project: default
  source:
    repoURL: https://github.com/org/repo
    targetRevision: HEAD
    path: k8s/
  destination:
    server: https://kubernetes.default.svc
    namespace: production
  syncPolicy:
    automated:
      prune: true
      selfHeal: true

Best Practices

  • Use auto-sync for dev environments
  • Enable self-heal to maintain desired state
  • Use app-of-apps pattern for multiple apps
  • Set sync waves for ordered deployment

💡 Pro Tips

Quick Reference

ArgoCD continuously monitors Git for changes

← Back to Programming Languages | Browse all categories | View all cheat sheets