The application controller is OOMKilled repeatedly after onboarding a large cluster.
AdvancedTroubleshootingSecrets, Controller Performance & Recovery
Answer
Likely causes → The controller caches every watched resource of every managed cluster; big clusters with many Events, Pods, ReplicaSets or CRs (Velero backups, Kyverno reports) blow up memory.
Diagnose →
argocd admin cluster stats
kubectl -n argocd top pod -l app.kubernetes.io/name=argocd-application-controller
Fix → Exclude noisy kinds:
# argocd-cm
data:
resource.exclusions: |
- apiGroups: ["kyverno.io", "wgpolicyk8s.io"]
kinds: ["*"]
clusters: ["*"]
Raise memory limits, and shard with more controller replicas (ARGOCD_CONTROLLER_REPLICAS).
Prevent → Review exclusions when onboarding clusters; watch argocd_cluster_api_resource_objects.
More on Secrets, Controller Performance & Recovery
A Sealed Secret is not decrypted: the SealedSecret shows `no key could decrypt secret (password)`.IntermediateA KSOPS or SOPS-based app fails with `Error: failed to get the data key required to decrypt the SOPS file`.Intermediateargocd-vault-plugin apps fail with `Replace: could not replace all placeholders in Template: ... secret not found`.AdvancedAn ExternalSecret is `SecretSyncedError` with `could not get secret data from provider`, and the app is Degraded.BeginnerReconciliation is slow for all apps; `argocd_app_reconcile` p95 is minutes and the workqueue depth keeps growing.AdvancedThe UI and CLI are slow and logs show `Failed to get cached app state: dial tcp 10.96.40.2:6379: connect: connection refused`.Intermediate