Configure ECK
editConfigure 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. |
|
|
Container registry to use for pulling Elastic Stack container images. |
|
|
Listen address for the debug HTTP server. Only available in development mode. |
|
|
Enable developmenet mode. Only available as a CLI flag. |
|
|
Enable APM tracing in the operator process. APM server URL, credentials etc. can be configured via environment variables. See the Apm Go Agent reference for details. |
|
|
Enables a validating webhook server in the operator process. |
|
|
Enables restrictions on cross-namespace resource association through RBAC |
|
|
Verbosity level of logs. |
|
|
Enables automatic webhook certificate management. |
|
|
Maximum number of concurrent reconciles per controller (Elasticsearch, Kibana, APM Server). Affects the ability of the operator to process changes concurrently. |
|
|
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. |
|
|
Label used to select pods running the webhook server. |
|
|
K8s secret mounted into the path designated by webhook-cert-dir to be used for webhook certificates. |
|
|
Path to the directory that contains the webhook server key and certificate. |
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.