Skip to content

argocd-application-controller Command Reference

argocd-application-controller

Run ArgoCD Application Controller

Synopsis

ArgoCD application controller is a Kubernetes controller that continuously monitors running applications and compares the current, live state against the desired target state (as specified in the repo). This command runs Application Controller in the foreground. It can be configured by following options.

argocd-application-controller [flags]

Options

      --app-hard-resync int                                         Time period in seconds for application hard resync.
      --app-resync int                                              Time period in seconds for application resync. (default 120)
      --app-resync-jitter int                                       Maximum time period in seconds to add as a delay jitter for application resync. (default 60)
      --app-state-cache-expiration duration                         Cache expiration for app state (default 1h0m0s)
      --application-namespaces strings                              List of additional namespaces that applications are allowed to be reconciled from
      --as string                                                   Username to impersonate for the operation
      --as-group stringArray                                        Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
      --as-uid string                                               UID to impersonate for the operation
      --certificate-authority string                                Path to a cert file for the certificate authority
      --client-certificate string                                   Path to a client certificate file for TLS
      --client-key string                                           Path to a client key file for TLS
      --cluster string                                              The name of the kubeconfig cluster to use
      --cluster-cache-attempt-limit int32                           Number of attempts for a failed list request during a cluster cache sync. 1 disables retries (default 1)
      --cluster-cache-batch-events-processing[=true|false]          Process resource events from the cluster in batches instead of one by one (default true)
      --cluster-cache-events-processing-interval duration           Interval between processing batches of resource events. Only used when --cluster-cache-batch-events-processing is enabled (default 100ms)
      --cluster-cache-list-page-buffer-size int32                   Number of list pages buffered in memory during a cluster cache sync (default 1)
      --cluster-cache-list-page-size int                            Number of resources requested per page when listing resources during a cluster cache sync. 0 lists each resource type in a single request without pagination (default 500)
      --cluster-cache-list-semaphore int                            Maximum number of concurrent list operations per cluster during a cluster cache sync (default 50)
      --cluster-cache-resync-duration duration                      Time period after which the cluster cache is fully resynced from the cluster. 0 disables the periodic full resync (default 12h0m0s)
      --cluster-cache-retry-use-backoff[=true|false]                Use exponential backoff between retries of failed list requests during a cluster cache sync
      --cluster-cache-sync-retry-timeout duration                   Time to wait before retrying a cluster cache sync that failed. 0 retries on the next request without waiting, so a failing cluster is relisted on every request (default 10s)
      --cluster-cache-watch-resync-duration duration                Maximum time a resource watch runs before the controller relists the resources and restarts the watch. 0 keeps watches running until they fail (default 10m0s)
      --commit-server string                                        Commit server address. (default "argocd-commit-server:8086")
      --context string                                              The name of the kubeconfig context to use
      --default-cache-expiration duration                           Cache expiration default (default 24h0m0s)
      --disable-compression[=true|false]                            If true, opt-out of response compression for all requests to the server
      --dynamic-cluster-distribution-enabled[=true|false]           Enables dynamic cluster distribution.
      --enable-k8s-event none                                       Enable ArgoCD to use k8s event. For disabling all events, set the value as none. (e.g --enable-k8s-event=none), For enabling specific events, set the value as `event reason`. (e.g --enable-k8s-event=StatusRefreshed,ResourceCreated) (default [all])
      --gloglevel int                                               Set the glog logging level
  -h, --help[=true|false]                                           help for argocd-application-controller
      --hydration-processors int                                    Number of manifest hydration processors (only relevant when the Source Hydrator is enabled) (default 5)
      --hydrator-enabled[=true|false]                               Feature flag to enable Hydrator. Default ("false")
      --ignore-normalizer-jq-execution-timeout-seconds duration     Set ignore normalizer JQ execution timeout
      --insecure-skip-tls-verify[=true|false]                       If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
      --kubeconfig string                                           Path to a kube config. Only required if out-of-cluster
      --kubectl-parallelism-limit int                               Maximum number of concurrent cluster operations during sync. Any value less than 1 means no limit. (default 20)
      --logformat string                                            Set the logging format. One of: json|text (default "json")
      --loglevel string                                             Set the logging level. One of: debug|info|warn|error (default "info")
      --metrics-application-conditions strings                      List of Application conditions that will be added to the argocd_app_condition metric
      --metrics-application-labels strings                          List of Application labels that will be added to the argocd_app_labels metric
      --metrics-cache-expiration duration                           Prometheus metrics cache expiration (disabled  by default. e.g. 24h0m0s)
      --metrics-cluster-labels strings                              List of Cluster labels that will be added to the argocd_cluster_labels metric
      --metrics-port int                                            Start metrics server on given port (default 8082)
      --metrics-sync-windows[=true|false]                           Enable the argocd_app_sync_window, argocd_app_sync_blocked and argocd_app_sync_window_error metrics
  -n, --namespace string                                            If present, the namespace scope for this CLI request
      --operation-processors int                                    Number of application operation processors (default 10)
      --otlp-address string                                         OpenTelemetry collector address to send traces to
      --otlp-attrs strings                                          List of OpenTelemetry collector extra attrs when send traces, each attribute is separated by a colon(e.g. key:value)
      --otlp-headers stringToString                                 List of OpenTelemetry collector extra headers sent with traces, headers are comma-separated key-value pairs(e.g. key1=value1,key2=value2) (default [])
      --otlp-insecure[=true|false]                                  OpenTelemetry collector insecure mode (default true)
      --otlp-metrics-enabled[=true|false]                           Push the Prometheus metrics to the OpenTelemetry collector at --otlp-address
      --otlp-metrics-interval duration                              Interval at which Prometheus metrics are pushed to the OpenTelemetry collector (default 30s)
      --otlp-sample-ratio float                                     Fraction of traces to sample, from 0.0 (none) to 1.0 (all). Parent-based, so downstream services honor the upstream sampling decision (default 1)
      --password string                                             Password for basic authentication to the API server
      --persist-resource-health[=true|false]                        Enables storing the managed resources health in the Application CRD
      --proxy-url string                                            If provided, this URL will be used to connect via proxy
      --reconciled-at-default-cache-expiration duration             Cache expiration default (default 24h0m0s)
      --reconciled-at-heartbeat duration                            How stale the Application status.reconciledAt field may become while nothing else in status changes. Zero (the default) writes it on every reconciliation; a positive value (e.g. 10m) trades staleness of that one field for far fewer API server writes.
      --reconciled-at-redis string                                  Redis server hostname and port (e.g. argocd-redis:6379). 
      --reconciled-at-redis-ca-certificate string                   Path to Redis server CA certificate (e.g. /etc/certs/redis/ca.crt). If not specified, system trusted CAs will be used for server certificate validation.
      --reconciled-at-redis-client-certificate string               Path to Redis client certificate (e.g. /etc/certs/redis/client.crt).
      --reconciled-at-redis-client-key string                       Path to Redis client key (e.g. /etc/certs/redis/client.crt).
      --reconciled-at-redis-compress string                         Enable compression for data sent to Redis with the required compression algorithm. (possible values: gzip, none) (default "gzip")
      --reconciled-at-redis-insecure-skip-tls-verify[=true|false]   Skip Redis server certificate validation.
      --reconciled-at-redis-use-tls[=true|false]                    Use TLS when connecting to Redis. 
      --reconciled-at-redisdb int                                   Redis database.
      --reconciled-at-sentinel stringArray                          Redis sentinel hostname and port (e.g. argocd-redis-ha-announce-0:6379). 
      --reconciled-at-sentinelmaster string                         Redis sentinel master group name. (default "master")
      --redis string                                                Redis server hostname and port (e.g. argocd-redis:6379). 
      --redis-ca-certificate string                                 Path to Redis server CA certificate (e.g. /etc/certs/redis/ca.crt). If not specified, system trusted CAs will be used for server certificate validation.
      --redis-client-certificate string                             Path to Redis client certificate (e.g. /etc/certs/redis/client.crt).
      --redis-client-key string                                     Path to Redis client key (e.g. /etc/certs/redis/client.crt).
      --redis-compress string                                       Enable compression for data sent to Redis with the required compression algorithm. (possible values: gzip, none) (default "gzip")
      --redis-insecure-skip-tls-verify[=true|false]                 Skip Redis server certificate validation.
      --redis-use-tls[=true|false]                                  Use TLS when connecting to Redis. 
      --redisdb int                                                 Redis database.
      --repo-error-grace-period-seconds int                         Grace period in seconds for ignoring consecutive errors while communicating with repo server. (default 180)
      --repo-server string                                          Repo server address. (default "argocd-repo-server:8081")
      --repo-server-ca-cert-path string                             Path to the repo-server CA certificate file
      --repo-server-client-cert-key-path string                     Path to the client certificate key file for mTLS. Defaults to the auto-mounted Secret path; mTLS client cert is skipped if the file does not exist. (default "/app/config/reposerver/mtls/client.key")
      --repo-server-client-cert-path string                         Path to the client certificate file for mTLS. Defaults to the auto-mounted Secret path; mTLS client cert is skipped if the file does not exist. (default "/app/config/reposerver/mtls/client.crt")
      --repo-server-plaintext[=true|false]                          Disable TLS on connections to repo server
      --repo-server-timeout-seconds int                             Repo server RPC call timeout seconds. (default 60)
      --request-timeout string                                      The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
      --self-heal-backoff-cap-seconds int                           Specifies max timeout of exponential backoff between application self heal attempts (default 300)
      --self-heal-backoff-factor int                                Specifies factor of exponential timeout between application self heal attempts (default 3)
      --self-heal-backoff-timeout-seconds int                       Specifies initial timeout of exponential backoff between self heal attempts (default 2)
      --self-heal-timeout-seconds int                               Specifies timeout between application self heal attempts
      --sentinel stringArray                                        Redis sentinel hostname and port (e.g. argocd-redis-ha-announce-0:6379). 
      --sentinelmaster string                                       Redis sentinel master group name. (default "master")
      --server string                                               The address and port of the Kubernetes API server
      --server-side-diff-enabled[=true|false]                       Feature flag to enable ServerSide diff. Default ("false")
      --sharding-method string                                      Enables choice of sharding method. Supported sharding methods are : [legacy, round-robin, consistent-hashing]  (default "legacy")
      --status-processors int                                       Number of application status processors (default 20)
      --sync-timeout int                                            Specifies the timeout after which a sync would be terminated. 0 means no timeout (default 0).
      --tls-server-name string                                      If provided, this name will be used to validate server certificate. If this is not provided, hostname used to contact the server is used.
      --token string                                                Bearer token for authentication to the API server
      --user string                                                 The name of the kubeconfig user to use
      --username string                                             Username for basic authentication to the API server
      --wq-backoff-factor float                                     Set Workqueue Per Item Rate Limiter Backoff Factor, default is 1.5 (default 1.5)
      --wq-basedelay-ns duration                                    Set Workqueue Per Item Rate Limiter Base Delay duration in nanoseconds, default 1000000 (1ms) (default 1ms)
      --wq-bucket-qps float                                         Set Workqueue Rate Limiter Bucket QPS, default set to MaxFloat64 which disables the bucket limiter (default 1.7976931348623157e+308)
      --wq-bucket-size int                                          Set Workqueue Rate Limiter Bucket Size, default 500 (default 500)
      --wq-cooldown-ns duration                                     Set Workqueue Per Item Rate Limiter Cooldown duration in ns, default 0(per item rate limiter disabled)
      --wq-maxdelay-ns duration                                     Set Workqueue Per Item Rate Limiter Max Delay duration in nanoseconds, default 1000000000 (1s) (default 1s)