GitOps leverages Git repositories as the single source of truth for managing infrastructure and application deployments automatically.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: my-app
spec:
project: default
source:
repoURL: 'https://github.com/my-org/my-repo.git'
targetRevision: HEAD
path: 'manifests'
destination:
server: 'https://kubernetes.default.svc'
namespace: my-namespace
syncPolicy:
automated:
prune: true
selfHeal: true
# Sync Git repository changes to cluster
argocd app sync my-app
GitOps provides declarative, versioned, and automated deployment workflows, empowering DevOps teams with reliable and consistent operations.