Skip to main content
πŸŽ“ Claude Code Masterclass Learn AI-assisted development on Udemy β€” plus the companion book on Leanpub & Amazon. Start Learning
Fix ArgoCD ApplicationSet Generator Error
DevOps

Fix ArgoCD ApplicationSet Generator Error

ApplicationSet not generating apps? Debug Git, list, cluster, and matrix generators with proper templates. Practical guide with examples, commands, and best.

LB
Luca Berton
Β· 1 min read

The Problem

ArgoCD ApplicationSet fails with generator errors. Applications are not created or are created incorrectly.

Root Cause

ApplicationSet generators fail when:

  • Git repository is unreachable
  • Directory path does not exist
  • Template variables are undefined
  • Generator produces empty results

Fix

Check ApplicationSet Controller Logs

kubectl logs -n argocd deployment/argocd-applicationset-controller --tail=100

Common Fixes

Git generator β€” repository not found:

spec:
  generators:
    - git:
        repoURL: https://github.com/org/repo.git
        revision: HEAD
        directories:
          - path: "apps/*"   # Ensure this path exists

List generator β€” validate entries:

spec:
  generators:
    - list:
        elements:
          - cluster: production
            url: https://kubernetes.default.svc
          - cluster: staging
            url: https://staging-cluster:6443

Matrix generator β€” check both sub-generators independently first.

Validate Before Applying

# Dry-run to see what applications would be created
kubectl apply --dry-run=server -f applicationset.yaml
#argocd #gitops #kubernetes #troubleshooting #devops
Share:
Kubernetes & Containerization

Need help with Kubernetes & Containerization?

Master Kubernetes and container orchestration with hands-on workshops and architecture consulting.

Learn more about Kubernetes & Containerization

Want to operate this yourself, in production?

Take the free AI Platform Engineer Readiness Scorecard to see which skills transfer β€” then build a production-shaped AI platform in the 4-week Bootcamp.

Take the Scorecard β†’
Luca Berton β€” The Production AI Expert, Docker Captain

Luca Berton

The Production AI Expert Β· Docker Captain Β· KubeCon Speaker

15+ years in enterprise infrastructure. Author of 8 technical books, creator of Ansible Pilot (1M+ YouTube views, 648K site users). Former Red Hat engineer. Speaker at KubeCon EU 2026 and Red Hat Summit 2026.

Free 30-min Production AI consultation

Book Now