Red Hat Camel K is deprecated
Red Hat Camel K is deprecated and the End of Life date for this product is June 30, 2025. For help migrating to the current go-to solution, Red Hat build of Apache Camel, see the Migration Guide.7.2. Camel K 模式行选项
您可以使用 Camel K modeline 在 Camel K 集成源文件中输入配置选项,该文件在运行时执行,例如使用 kamel run MyIntegration.java
。如需了解更多详细信息,请参阅使用模式行运行 Camel K 集成。
所有可用于 kamel run
命令的选项都可以指定为 modeline 选项。
下表描述了一些最常用的模式行选项。
选项 | 描述 |
---|---|
| 添加 build-time 属性或 build-time 属性文件。
Syntax: |
| 从 Configmap、Secret 或文件添加运行时配置
语法:
-
- |
| 包括一个外部库(例如 Maven 依赖项)
示例: |
|
在集成容器中设置环境变量。例如, |
|
为集成添加标签。例如, |
|
添加集成名称。例如, |
|
添加 OpenAPI v2 规格。例如, |
|
设置用于部署的 Camel K trait 配置集。例如: |
| 添加 runtime 属性或运行时属性文件。
Syntax: |
| 从 ConfigMap、Secret 或文件添加运行时资源
syntax:
-
- |
|
在特征中配置 Camel K 功能或核心功能。例如, |