DevTools Logo

ArgoCD Application Generator

ArgoCD Application Generator

Build a valid Application manifest — sync policy, Helm options and app-of-apps sets — with field explanations.

Runs in your browser
Try an example

Application form

argoproj.io/v1alpha1

Metadata

Source & destination

Sync policy

Sync options

Application YAML

32 lines
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: my-app
  namespace: argocd
spec:
  project: default
  source:
    repoURL: https://github.com/org/repo
    path: charts/app
    targetRevision: main
    helm:
      parameters:
        - name: replicaCount
          value: "2"
  destination:
    server: https://kubernetes.default.svc
    namespace: prod
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true
      - ServerSideApply=true
    retry:
      limit: 5
      backoff:
        duration: 30s
        factor: 2
        maxDuration: 5m

Field explanations

  • apiVersion/kind identify the argoproj.io/v1alpha1 Application CRD.
  • spec.source points at the Git path and revision ArgoCD renders.
  • spec.destination targets https://kubernetes.default.svc, namespace prod.
  • syncPolicy.automated enables continuous reconciliation.
  • prune deletes resources that were removed from Git — review RBAC before enabling.
  • selfHeal repairs live resources that drift from the desired state.
  • retry allows 5 attempts with 30s initial backoff (factor 2).

Application my-app → https://github.com/org/repo@main (charts/app) destination: https://kubernetes.default.svc / prod mode: single

The generator assembles a complete argoproj.io/v1alpha1 Application CRD from a guided form: metadata with labels and annotations, a Helm, Kustomize or plain-manifest source, a destination cluster and namespace, and a sync policy with automated reconciliation, prune, selfHeal, sync options and retry backoff. App-of-apps mode emits an ApplicationSet whose list generator creates one child Application per child directory; Helm parameters apply to single mode only. Every emitted block has a plain-language explanation, and the YAML is checked for tabs, required keys and balanced quotes before it is offered for download. Nothing is uploaded — generation is entirely in-browser.

Helm chart onboarding

repo https://github.com/org/repo · path charts/app · revision main · Helm replicaCount=2

Produces a full Application with a helm.parameters block, destination https://kubernetes.default.svc/prod and automated sync.

Sync policy with retry

automated + prune + selfHeal · CreateNamespace=true · ServerSideApply=true · retry 5 × 30s

The nested syncPolicy block is emitted with prune, selfHeal, a syncOptions list and an exponential retry backoff.

App of apps

children: api, worker

The parent Application lists one source per child directory, the standard GitOps layout for bootstrapping several apps.

Examples

Helm chart

Input
repo https://github.com/org/repo, path charts/app, revision main, replicaCount=2
Output
Application with source.helm.parameters and automated sync

The most common onboarding case: one chart, one destination namespace.

Manual sync

Input
automated off, prune on
Output
No syncPolicy.automated block + a warning

Prune and selfHeal only matter when automated sync is enabled, so the tool says so.

App of apps

Input
children api, worker
Output
Parent with spec.sources listing charts/app/api and charts/app/worker

A single parent Application bootstraps a directory of child Applications.

Invalid name

Input
name Bad_Name
Output
Validation error naming DNS-1123

Kubernetes metadata names cannot contain underscores or uppercase letters.

About this tool

The ArgoCD Application Generator turns a short form into a complete, valid Application manifest for argoproj.io/v1alpha1. Fill in the repository, path and revision, choose the source flavour (Helm, Kustomize or plain manifests), set the destination cluster and namespace, and configure the sync policy. The YAML is assembled with two-space indentation and checked for tabs, required keys and balanced quotes before download.

Sync options are offered with explanations of what they actually do: CreateNamespace creates a missing namespace, ServerSideApply hands field management to the API server, PruneLast delays deletions until the rest of the sync succeeds. Prune removes resources that disappeared from Git, selfHeal repairs drift, and the retry block controls attempts and exponential backoff. App-of-apps mode emits one source per child directory for the classic GitOps bootstrap pattern.

The generator emits Application CRDs only — it does not author Deployment or Service manifests, manage Argo Rollouts, or connect to a cluster. Everything runs locally in the browser.

What this tool does not do

  • Application CRDs only; no Deployment, Service, Rollout or ApplicationSet generation.
  • No cluster connection, authentication or dry-run: the YAML is structurally checked, not applied.
  • Helm value files are not parsed; key/value pairs become inline helm.parameters.
  • Multi-source mode is used only for the app-of-apps child list, not arbitrary user-defined source sets.
  • Import of existing manifests is not implemented.

How to use this tool

  1. Fill metadata

    Enter a DNS-1123 application name (lowercase letters, digits and hyphens), an optional ArgoCD namespace, a project, and labels or annotations as key: value lines.

  2. Describe the source

    Provide an http(s), ssh or git@ repository URL, a path and a target revision; pick Helm, Kustomize or plain manifests.

  3. Set the destination

    Use https://kubernetes.default.svc for the in-cluster API, or a named/remote server, plus a destination namespace.

  4. Configure sync

    Toggle automated sync, prune and selfHeal; choose sync options and the retry limit, backoff duration and factor.

  5. Copy or download

    Read the field explanations under the YAML, then copy the manifest or download application.yaml.

Use cases

Onboard applications

Turn a service's repository coordinates into a review-ready Application manifest in seconds.

Template GitOps bootstraps

Generate an app-of-apps parent with one source per child directory.

Learn sync policy

See how prune, selfHeal, syncOptions and retry nest under syncPolicy.

Review configuration

Read the field explanations beside the YAML when auditing a colleague's settings.

Sync options and meanings

OptionEffect
CreateNamespace=trueCreate the destination namespace if it does not exist.
ServerSideApply=trueUse server-side apply for field ownership.
Validate=falseSkip client-side validation for unknown CRDs.
PruneLast=trueDelete stale resources after the rest of the sync.
ApplyOutOfOrder=trueApply resources whose dependencies are not ready yet.
PrunePropagationPolicy=foregroundUse foreground cascading deletion when pruning.
RespectIgnoreDifferences=trueHonour ignoreDifferences during sync.

Retry backoff durations accept ms, s, m and h suffixes; the retry factor multiplies the delay after each attempt.

Common mistakes

Mistake:Using an uppercase or underscored application name.

Fix:Kubernetes metadata names must be DNS-1123 labels; the tool rejects invalid names.

Mistake:Expecting prune to work without automated sync.

Fix:Enable automated sync; otherwise the tool emits a warning and omits the block.

Mistake:Putting caches or source parameters at the wrong indentation level.

Fix:Copy the generated YAML rather than hand-editing indentations.

Mistake:Assuming this generates workloads.

Fix:It emits Application CRDs only; workload manifests belong in your chart or overlay.

Mistake:Forgetting the destination namespace.

Fix:Set it explicitly — otherwise ArgoCD falls back to the project's default namespace.

Frequently asked questions

What does prune vs selfHeal do?

Prune deletes live resources that were removed from Git during a sync; selfHeal detects drift in resources that still exist and re-applies the desired state. Both only apply when automated sync is enabled, and the generator warns you if you enable them without it.

How do sync retries work?

The retry block sets a maximum number of attempts and a backoff with an initial duration, a multiplicative factor and a maximum duration. Set the retry limit to 0 to omit the block entirely.

What is the app-of-apps pattern?

One parent Application points at a directory containing child Application manifests. ArgoCD syncs the parent first and then each child, which is a common way to bootstrap many apps. This generator emits the parent with one source per child directory.

How do I target the in-cluster API?

Use https://kubernetes.default.svc as the destination server — that is the default in the tool. A remote cluster needs its registered server URL or name.

Which fields are required in an Application?

At minimum: apiVersion, kind, metadata.name, spec.source (repoURL, path, targetRevision), spec.destination and spec.project. The generator also emits a syncPolicy when you configure one.

Is the YAML validated?

It is checked structurally: no tabs, required top-level keys present and balanced quotes on every line. That is not the same as applying it to a cluster — ArgoCD may still reject values it cannot resolve.

References & standards