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

Fix ArgoCD Cluster Secret Invalid

Cluster connection failing? Fix ArgoCD cluster secrets, service account tokens, and OIDC-based cluster authentication with step-by-step commands and examples.

LB
Luca Berton
Β· 1 min read

The Problem

ArgoCD shows Cluster Secret Invalid. This prevents normal GitOps operations.

Diagnosis

# Check application status
argocd app get my-app

# Check ArgoCD controller logs
kubectl logs -n argocd deployment/argocd-application-controller --tail=100

# Check repo-server logs
kubectl logs -n argocd deployment/argocd-repo-server --tail=100

# Check ArgoCD server logs
kubectl logs -n argocd deployment/argocd-server --tail=100

Common Causes and Fixes

1. Check ArgoCD Version

argocd version
# Ensure client and server versions match

2. Restart ArgoCD Components

kubectl rollout restart deployment/argocd-application-controller -n argocd
kubectl rollout restart deployment/argocd-repo-server -n argocd
kubectl rollout restart deployment/argocd-server -n argocd

3. Clear Application Cache

# Hard refresh clears the manifest cache
argocd app get my-app --hard-refresh

4. Check RBAC Permissions

# Verify ArgoCD has permissions in target namespace
kubectl auth can-i create deployments --as=system:serviceaccount:argocd:argocd-application-controller -n target-namespace

5. Validate Manifests

# Test manifests locally
kubectl apply --dry-run=client -f manifests/

# Check for Kustomize/Helm errors
argocd app manifests my-app

Prevention

  • Pin ArgoCD version and test upgrades in staging first
  • Use health checks and sync windows for production applications
  • Monitor ArgoCD metrics with Prometheus
  • Set resource limits on ArgoCD components to prevent OOM
#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 β€” AI & Cloud Advisor, Docker Captain

Luca Berton

AI & Cloud Advisor Β· 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 AI & Cloud consultation

Book Now