perf(argocd): ignore resource update to reduce CPU usage

From https://argo-cd.readthedocs.io/en/stable/operator-manual/reconcile

By default, an Argo CD Application is refreshed every time a resource that
belongs to it changes.

Kubernetes controllers often update the resources they watch periodically,
causing continuous reconcile operation on the Application and a high CPU
usage on the argocd-application-controller

When a resource update is ignored, if the resource's health status does
not change, the Application that this resource belongs to will not be
reconciled.
This commit is contained in:
Khue Doan 2024-01-18 23:44:52 +07:00
parent f3e3fa22ec
commit 59cd428763
2 changed files with 5 additions and 2 deletions

View File

@ -3,5 +3,5 @@ name: argocd
version: 0.0.0
dependencies:
- name: argo-cd
version: 5.20.2
version: 5.53.0
repository: https://argoproj.github.io/argo-helm

View File

@ -3,7 +3,10 @@ argo-cd:
extraArgs:
- --insecure
config:
statusbadge.enabled: 'true'
resource.ignoreResourceUpdatesEnabled: true
resource.customizations.ignoreResourceUpdates.all: |
jsonPointers:
- /status
resource.customizations.health.argoproj.io_Application: |
hs = {}
hs.status = "Progressing"