Open nhavens opened 1 year ago
We're experiencing the same issue with numerous API calls. @nhavens , did you find a workaround?
{
"Version": "v2.11.2+25f7504",
"BuildDate": "2024-05-23T13:32:13Z",
"GitCommit": "25f7504ecc198e7d7fdc055fdb83ae50eee5edd0",
"GitTreeState": "clean",
"GoVersion": "go1.21.9",
"Compiler": "gc",
"Platform": "linux/amd64",
"KustomizeVersion": "v5.2.1 2023-10-19T20:13:51Z",
"HelmVersion": "v3.14.4+g81c902a",
"KubectlVersion": "v0.26.11",
"JsonnetVersion": "v0.20.0"
}
Checklist:
argocd version
.Describe the bug
Our Argo CD deploys both to the same cluster as well as multiple additional clusters. We have > 300 Application resources, many of which are generated by ApplicationSets. We see from the audit logs for our k8s api-server that an alarmingly high percentage of total requests, particularly those using the
list
verb come from the ApplicationSet controller (see Logs section below). This behavior was also present on Argo CD version 2.5.3.To Reproduce
Deploy several hundred Applications to a single Argo CD instance, mostly generated by ApplicationSets.
Expected behavior
There should not be significant load places on the k8s api-server to fetch the Secrets required to reconcile these apps. As with many other components of Argo CD, some sort of caching mechanism should be put in place.
Version
Logs
Here's an example audit log from our k8s api-server.