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 f5008cacce4981b0ecfa6fb43985901d97490af6 Author: gre8t <[email protected]> AuthorDate: Sun Apr 17 05:09:25 2022 +0100 added file config example. Linked the example in navigation. --- docs/modules/ROOT/nav.adoc | 1 + docs/modules/ROOT/pages/cli/file-based-config.adoc | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc index e8e7a88e5..719046ccb 100644 --- a/docs/modules/ROOT/nav.adoc +++ b/docs/modules/ROOT/nav.adoc @@ -21,6 +21,7 @@ *** xref:installation/advanced/multi.adoc[Multiple Operators] * Command Line Interface ** xref:cli/cli.adoc[Kamel CLI] +** xref:cli/file-based-config.adoc[File-based Config] ** xref:cli/modeline.adoc[Modeline] * xref:running/running.adoc[Run an Integration] ** xref:running/dev-mode.adoc[Developer mode] diff --git a/docs/modules/ROOT/pages/cli/file-based-config.adoc b/docs/modules/ROOT/pages/cli/file-based-config.adoc index ad514b9ad..86b948651 100644 --- a/docs/modules/ROOT/pages/cli/file-based-config.adoc +++ b/docs/modules/ROOT/pages/cli/file-based-config.adoc @@ -2,4 +2,23 @@ File-based configuration is used to set command flags. Flag values do not need to be entered on a regular basis. The file is read on Kamel startup and the flags are set accordingly. -To configure this flag, create a file named kamel-config.yaml on the same directory as your integration. The file must contain a yaml structure as shown in ./kamel-config.yaml. \ No newline at end of file +The file's default name is `kamel-config.yaml` . Which should be placed in either of this directory structure: + + - `~/.kamel/` + - `./.kamel/` + - `.` + +it can be overriden by setting an env value `KAMEL_CONFIG_NAME` to file path. + + +To configure this flag, create a file named kamel-config.yaml on the same directory as your integration. The file must contain a yaml structure as shown below: + +.Kamel-config.yaml + +```yaml +kamel: + install: + namespace: kamel + healthPort: 8081 + monitoringPort: 8082 +```
