Flux Operator Configuration

The Flux Operator can be configured using command-line flags and environment variables.

Flags

The following flags are available:

FlagDefaultDescription
--concurrent10The number of concurrent resource reconciles
--default-service-accountDefault service account used for impersonation
--default-workload-identity-service-accountDefault service account to use for workload identity when not specified in resources
--enable-leader-electiontrueEnable leader election for controller manager
--health-addr:8081The address the health endpoint binds to
--interval-jitter-percentage5Percentage of jitter to apply to interval durations
--leader-election-lease-duration35sInterval at which non-leader candidates will wait to force acquire leadership
--leader-election-release-on-canceltrueDefines if the leader should step down voluntarily on controller manager shutdown
--leader-election-renew-deadline30sDuration that the leading controller manager will retry refreshing leadership before giving up
--leader-election-retry-period5sDuration the LeaderElector clients should wait between tries of actions
--log-encodingjsonLog encoding format. Can be ‘json’ or ‘console’
--log-levelinfoLog verbosity level. Can be one of ‘trace’, ‘debug’, ‘info’, ‘error’
--max-retry-delay15mThe maximum amount of time for which an object being reconciled will have to wait before a retry
--metrics-addr:8080The address the metric endpoint binds to
--min-retry-delay750msThe minimum amount of time for which an object being reconciled will have to wait before a retry
--override-managerField manager disallowed to perform changes on managed resources (repeatable)
--reporting-interval5mThe interval at which the report is computed
--requeue-dependency5sThe interval at which failing dependencies are reevaluated
--storage-path/dataThe local storage path
--token-cache-max-duration1hThe maximum duration a token is cached
--token-cache-max-size100The maximum size of the cache in number of tokens
--watch-configs-label-selectorreconcile.fluxcd.io/watch=EnabledWatch for ConfigMaps and Secrets with matching labels
--web-configThe path to the configuration file for the web server
--web-config-secret-nameThe name of the Kubernetes Secret containing the web server configuration
--web-server-onlyfalseRun only the web server without starting the controllers
--web-server-port9080The port for the web server to listen on (0 to disable)

The flags can be passed to the operator container using the Helm chart values extraArgs.

Environment Variables

The following environment variables are available:

Env VarDescription
DEFAULT_SERVICE_ACCOUNTDefault service account used for impersonation
DEFAULT_WORKLOAD_IDENTITY_SERVICE_ACCOUNTDefault service account for workload identity
OVERRIDE_MANAGERSComma-separated field managers disallowed to perform changes
REPORTING_INTERVALThe interval at which the report is computed
WEB_SERVER_PORTThe port for the web server
WEB_CONFIG_SECRET_NAMESecret name for web server configuration

The environment variables are intended for Operator Lifecycle Manager (OLM) installations and can be set in the Subscription manifest using the config.env field.