GitOps is a declarative approach to infrastructure and application management using Git as the single source of truth. Changes are automatically applied and monitored, ensuring consistency across environments.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: webapp
spec:
project: default
source:
repoURL: 'https://github.com/myorg/webapp.git'
path: 'deploy'
targetRevision: HEAD
destination:
server: 'https://kubernetes.default.svc'
namespace: default
syncPolicy:
automated:
prune: true
selfHeal: true
GitOps brings consistency, auditability, and automation to DevOps workflows, enabling faster and safer deployments across clusters.