Generate ArgoCD Application manifests for GitOps deployments with sync policies, auto-heal, and Helm support.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: my-app
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/org/repo
targetRevision: HEAD
path: k8s/overlays/prod
destination:
server: https://kubernetes.default.svc
namespace: productionkubectl apply -f argocd-app.yaml
ArgoCD is a GitOps continuous delivery tool for Kubernetes. It watches a Git repository for changes and automatically syncs Kubernetes resources to match the desired state in the repo. An Application is the core ArgoCD resource - it defines the source repository, target cluster, destination namespace, and sync policy.
Enter your application name, namespace, Git repository URL, and the path within that repository where your Kubernetes manifests or Helm chart live. Select Git or Helm as the source type, set the target revision (branch or tag), and choose a sync policy. The generator outputs the complete Application YAML plus the <code>kubectl apply</code> command to register it with ArgoCD.
Auto-sync with prune and self-heal is the recommended production setting: ArgoCD will delete resources removed from Git and automatically recover from drift. For first deployments, manual sync lets you review what will be created before applying. The optional <code>CreateNamespace=true</code> server-side apply option is added when auto-create namespace is enabled.