This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 18239ed034d76e500701786b77160be150701821 Author: Gregorius Bima Kharisma Wicaksana <[email protected]> AuthorDate: Thu Dec 18 23:29:33 2025 +0700 docs: add environment variables section to existing advanced page Per reviewer feedback, instead of creating a new page, add the operator environment variables documentation as a section in the existing fine-tuning page (advanced.adoc). --- docs/modules/ROOT/nav.adoc | 1 - .../ROOT/pages/installation/advanced/advanced.adoc | 41 +++++++++++++ .../installation/advanced/operator-tuning.adoc | 69 ---------------------- 3 files changed, 41 insertions(+), 70 deletions(-) diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc index b60635826..8e6418947 100644 --- a/docs/modules/ROOT/nav.adoc +++ b/docs/modules/ROOT/nav.adoc @@ -20,7 +20,6 @@ *** xref:installation/advanced/http-proxy.adoc[HTTP Proxy] *** xref:installation/advanced/offline.adoc[Offline] *** xref:installation/advanced/pruning-registry.adoc[Pruning Registry] -*** xref:installation/advanced/operator-tuning.adoc[Operator Tuning] * xref:running/running.adoc[Run an Integration] ** xref:running/running-cli.adoc[kamel run CLI] ** xref:running/build-from-git.adoc[Git hosted Integrations] diff --git a/docs/modules/ROOT/pages/installation/advanced/advanced.adoc b/docs/modules/ROOT/pages/installation/advanced/advanced.adoc index 1df6ba460..4ee021a18 100644 --- a/docs/modules/ROOT/pages/installation/advanced/advanced.adoc +++ b/docs/modules/ROOT/pages/installation/advanced/advanced.adoc @@ -34,3 +34,44 @@ The service exposed on the _/metrics_ endpoint is compatible with Prometheus. Yo == Logging By default, the operator Pod logging level is set to INFO. You may require to change this value to log also DEBUG. In this case you need to provide an environment variable to the operator Deployment, _LOG_LEVEL_ which can be set to `debug`. You can also lower the number of logging tracing by setting this value to `error` (advisable for production environments). + +== Environment Variables + +The following environment variables can be configured on the operator Deployment to tune the operator behavior: + +[cols="2,1,3"] +|=== +|Variable |Default |Description + +|`WATCH_NAMESPACE` +|_empty_ +|The namespace(s) the operator watches for Integration resources. When not set or empty, the operator watches all namespaces. + +|`NAMESPACE` +|_auto-detected_ +|The namespace where the operator pod is running. + +|`POD_NAME` +|_auto-detected_ +|The name of the operator pod. + +|`KAMEL_OPERATOR_ID` +|`camel-k` +|The operator ID used to identify which operator instance manages specific resources. Can also be set via `OPERATOR_ID`. + +|`KAMEL_BASE_IMAGE` +|`eclipse-temurin:17-jdk` +|The base image used for building Integration images. Can also be set via `RELATED_IMAGE_BASE`. + +|`CAMEL_K_SYNTHETIC_INTEGRATIONS` +|`false` +|When set to `true`, enables synthetic Integration support for managing external workloads. + +|`LOG_LEVEL` +|`info` +|The log level for the operator. Valid values: `debug`, `info`, `warn`, `error`. + +|`KAMELET_CATALOG_DIR` +|`/tmp/kamelets/` +|Directory where Kamelet catalog files are extracted during installation. +|=== diff --git a/docs/modules/ROOT/pages/installation/advanced/operator-tuning.adoc b/docs/modules/ROOT/pages/installation/advanced/operator-tuning.adoc deleted file mode 100644 index 1d6951c4d..000000000 --- a/docs/modules/ROOT/pages/installation/advanced/operator-tuning.adoc +++ /dev/null @@ -1,69 +0,0 @@ -[[operator-tuning]] -= Operator Tuning - -The Camel K operator can be tuned using environment variables. This page documents the environment variables that can be used to customize the operator behavior. - -[[operator-env-vars]] -== Operator Environment Variables - -These environment variables configure the Camel K operator behavior. - -[cols="2,1,3"] -|=== -|Variable |Default |Description - -|`WATCH_NAMESPACE` -|_empty_ -|The namespace(s) the operator watches for Integration resources. When not set or empty, the operator watches all namespaces. - -|`NAMESPACE` -|_auto-detected_ -|The namespace where the operator pod is running. - -|`POD_NAME` -|_auto-detected_ -|The name of the operator pod. - -|`KAMEL_OPERATOR_ID` -|`camel-k` -|The operator ID used to identify which operator instance manages specific resources. Can also be set via `OPERATOR_ID`. - -|`KAMEL_BASE_IMAGE` -|`eclipse-temurin:17-jdk` -|The base image used for building Integration images. Can also be set via `RELATED_IMAGE_BASE`. - -|`CAMEL_K_SYNTHETIC_INTEGRATIONS` -|`false` -|When set to `true`, enables synthetic Integration support for managing external workloads. - -|`LOG_LEVEL` -|`info` -|The log level for the operator. Valid values: `debug`, `info`, `warn`, `error`. - -|`KAMELET_CATALOG_DIR` -|`/tmp/kamelets/` -|Directory where Kamelet catalog files are extracted during installation. -|=== - -[[setting-env-vars]] -== Setting Environment Variables - -Environment variables for the operator can be set in the operator Deployment: - -[source,yaml] ----- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: camel-k-operator -spec: - template: - spec: - containers: - - name: camel-k-operator - env: - - name: LOG_LEVEL - value: "debug" - - name: CAMEL_K_SYNTHETIC_INTEGRATIONS - value: "true" -----
