mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-06 09:08:26 +07:00
59cd428763
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.
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
argo-cd:
|
|
server:
|
|
extraArgs:
|
|
- --insecure
|
|
config:
|
|
resource.ignoreResourceUpdatesEnabled: true
|
|
resource.customizations.ignoreResourceUpdates.all: |
|
|
jsonPointers:
|
|
- /status
|
|
resource.customizations.health.argoproj.io_Application: |
|
|
hs = {}
|
|
hs.status = "Progressing"
|
|
hs.message = ""
|
|
if obj.status ~= nil then
|
|
if obj.status.health ~= nil then
|
|
hs.status = obj.status.health.status
|
|
if obj.status.health.message ~= nil then
|
|
hs.message = obj.status.health.message
|
|
end
|
|
end
|
|
end
|
|
return hs
|
|
ingress:
|
|
enabled: true
|
|
ingressClassName: nginx
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
hosts:
|
|
- &host argocd.khuedoan.com
|
|
tls:
|
|
- secretName: argocd-tls-certificate
|
|
hosts:
|
|
- *host
|
|
metrics: &metrics
|
|
enabled: true
|
|
serviceMonitor:
|
|
enabled: true
|
|
dex:
|
|
enabled: false
|
|
controller:
|
|
metrics: *metrics
|
|
repoServer:
|
|
metrics: *metrics
|
|
redis:
|
|
metrics: *metrics
|