Reconcillation loop when using orphanedResources monitorng + ApplicationSet on ~160 namespaces #9456
Open
3 tasks done
Labels
bug
Something isn't working
Hi! :)
Checklist:
argocd version
.Describe the bug
Enabling orphanedResources monitoring for larger number of namespaces makes ArgoCD application-controller to use 1.5-2.0 cores instead of ~0.25.
It looks like the application-controller is stuck in a reconcillation loop. I tried bumping the processors values, without luck.
Use case
I have
ApplicationSet
that for every namespace (160 namespaces) is applying Network Policies, Resource Quotas and Limit Rages. The resources for every namespace are plain YAML files. 160 directories = 160 Applications = resources for 160 namespaces.Every directory has about 3-8 simple resources of those 3 types.
I would like to know if somebody made a Network Policy, Resource Quota or Limit Range by hand when viewing the Application for given namespace.
ArgoCD configuration using operator:
To Reproduce
To fix (workaround)
Disable
orphanedResources
section (should be not present at all) inkind: AppProject
, then delete pod for application-controller.Expected behavior
I expect to be able to use
orphanedResources
monitoring together withnamespaceResourceWhitelist
for discovering if somebody not created Network Policies etc. by hand.Screenshots
Load diagram:
At the start of diagram (about 15:30) the "orphanedResources" is enabled. It is fine till 09:00 where probably first synchronization happens.
Version
Logs
Nothing. Just
info
messages looping in application-controller, looking normally, no warnings, no errors. Currently does not have those logs.The text was updated successfully, but these errors were encountered: