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 运行 MyIntegration.java
。如需了解更多详细信息,请参阅 使用模式 来运行 Camel K 集成。
所有适用于 kamel run
命令的选项,您可以指定为模式选项。
下表描述了一些最常用的模式选项。
选项 | 描述 |
---|---|
| 添加构建属性或构建属性文件。
Syntax: |
| 从 Configmap、Secret 或文件添加运行时配置
Syntax:
-
- |
| 包含外部库(例如,Maven 依赖项)
示例: |
|
在集成容器中设置环境变量。例如: |
|
为集成添加标签。例如, |
|
添加集成名称。例如: |
|
添加 OpenAPI v2 规格。例如, |
|
设置用于部署的 Camel K 特征配置文件。例如: |
| 添加运行时属性或运行时属性文件。
Syntax: |
| 从 ConfigMap、Secret 或文件添加运行时资源
Syntax:
-
- |
|
在特征中配置 Camel K 功能或核心功能。例如, |