Configuring ECK
editConfiguring ECK
editECK can be configured using either command line flags or environment variables.
Flag | Default | Description |
---|---|---|
|
|
Enables automatic port forwarding to allow running the operator outside the cluster. For dev use only as it exposes k8s resources on ephemeral ports to localhost. |
|
|
Duration representing how long before expiration CA certificates should be re-issued. |
|
|
Duration representing the validity period of a generated CA certificate. |
|
|
Duration representing how long before expiration TLS certificates should be re-issued. |
|
|
Duration representing the validity period of a generated TLS certificate. |
|
|
Listen address for the debug HTTP server. Only available in development mode. |
|
|
Enable developmenet mode. Only available as a CLI flag. |
|
|
Verbosity level of logs. |
|
|
Enables automatic webhook certificate management. |
|
|
Prometheus metrics port. Set to 0 to disable the metrics endpoint. |
|
|
Namespaces in which this operator should manage resources. Accepts multiple comma-separated values. Defaults to all namespaces if empty or unspecified. |
|
|
Namespace the operator runs in. Required. |
|
|
Roles this operator should assume. Valid values are |
|
|
Label used to select pods running the webhook server. |
|
|
Kubernetes secret containing the webhook certificates. |
Unless noted otherwise, environment variables can be used instead of flags to configure the operator as well. Simply convert the flag name to upper case and replace any dashes (-
) with underscores (_
). For example, the log-verbosity
flag can be set by an environment variable named LOG_VERBOSITY
.
Duration values should be specified as numeric values suffixed by the time unit. For example, a duration of 10 hours should be specified as 10h
. Acceptable time unit suffixes are:
Suffix | Unit |
---|---|
|
Milliseconds |
|
Seconds |
|
Minutes |
|
Hours |
Edit the elastic-operator
StatefulSet to change any of the flag values. Enable ECK debug logs illustrates how to change the log level of the operator using this method.